Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2004, 09:21 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session_OnEnd doesn´t work

Hi,

I use Session_OnEnd to update one table, but this event didn´t work, I have changed the session timeout and try to call Session.abandon but Nathing.

If I put the same code into the Session_Start it works perfectly. I dont Know why.

thanks , thanks, thanks for all,



 
Old May 19th, 2004, 09:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Are you using ASP or ASP.NET?

 
Old May 19th, 2004, 10:02 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry, asp.net

 
Old May 19th, 2004, 10:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It should be Session_End for ASP.NET.

 
Old May 19th, 2004, 10:53 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes yes, you are right but i write correctly on the global.asax my mistake are only here in the time a wrote my probles

public void Session_End(Object Sender, EventArgs E){
}

 
Old May 19th, 2004, 04:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

What session state mode are you using? Session_End only works for in process session state. Out of process state server and SQL Server modes are not supported with this method.

Brian
 
Old May 20th, 2004, 03:21 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, this is my web.config

<configuration>
  <system.web>
    <customErrors defaultRedirect="Error.aspx" mode="Off" />
    <sessionState
        mode="InProc"
        cookieless="false"
        timeout="20"/>
    <pages
        buffer="true"
        enableSessionState="true"
        enableViewState="true"
        enableViewStateMac="true"
        autoEventWireup="true"
        validateRequest="false"/>
    <compilation
        debug="true"
        explicit="true"
        defaultLanguage="c#"/>
    <globalization
         requestEncoding="iso-8859-1"
         responseEncoding="iso-8859-1"/>
  </system.web>
</configuration>


 
Old May 22nd, 2004, 04:32 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default

To Ensure That Glopal.asax is working
check if The Web Application Has A Name Not Just A Folder
In IIS -->VirtualDirectory-->App Settings --> then press Create

Ahmed Ali
Software Developer





Similar Threads
Thread Thread Starter Forum Replies Last Post
Eval ImageUrl doesn´t work studioc BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 May 23rd, 2008 05:57 AM
my .jar doesn´t "call" Javamail library a19987044 BOOK: Beginning Cryptography with Java 1 May 28th, 2006 08:03 PM
RountingSlip doesn´t work Ravel99 Pro VB 6 0 April 26th, 2006 08:33 AM
help with session_onend chinedu Classic ASP Basics 8 October 26th, 2004 10:13 PM
Session_OnEnd v. SQL bluewater68 Classic ASP Professional 0 August 18th, 2003 04:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.