Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Session on End not firing


Message #1 by "Debreceni, David" <david_debreceni@r...> on Mon, 6 May 2002 10:14:31 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1F5F0.7F41A810
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks for responding.
I have an application level variable in the session on end to show that it
is firing.  We found out that we can not kill our session the way we want
to, meaning force the users to log back in.  The only thing running in the
session_end now is a database log function that logs our users session when
it ends.  We decided to use a javascript function to redirect the user to a
logoff page when their session time is up.  I think that the reason it was
firing intermittently was the debugging stuff we had.  We rebooted the
server and all was working fine.  Thanks 
 

David Debreceni 
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086 

-----Original Message-----
From: Minh T. Nguyen [mailto:nguyentriminh@y...]
Sent: Tuesday, May 07, 2002 1:15 PM
To: ASPX_Professional
Subject: [aspx_professional] RE: Session on End not firing


David,
 
    What do you have in the Session_OnEnd method? What does it do? How do
you know that it doesn't fire? What do you mean by "write the session
timeout at the top of the page"?
 
Minh.
 
-----Original Message-----
From: Debreceni, David [mailto:david_debreceni@r...] 
Sent: Monday, May 06, 2002 7:15 AM
To: ASPX_Professional
Subject: [aspx_professional] Session on End not firing


Hello all,
    I have a page I am testing for a redirect when the session ends.  We
want the page to redirect when the user either attempts to go to another
page or refresh.  The problem we are having is that it seems that the
session on start continues to fire but not the session on end. for example,
if a user enters the page we the session on start write the session timeout
at the top of the page so that we know it has fired.  On the page we have
the session id to know that exists as well.  We refresh the page and the
session timeout that was listed at the top goes away as it should since it
only gets written in the session onstart.  We wait the 2 minutes that we
have the time out set for and then refresh the page again.  Instead of the
session onend firing we get the 2 at the top letting us know that the
session onstart fired and the session ID has not changed.  What is confusing
me is that for the session onstart to fire again it had to know the session
ended, so why is the session onend not firing?  Does anyone have any insight
into this?  These items work fine with classic asp.  We are not doing
anything fancy, we have our sessions set for inproc and are using cookies.
Thanks for any help.

David Debreceni 
Senior Visual Basic/ASP Developer 
xxx-xxx-xxxx  x 1086 

 
--- 
to unsubscribe send a blank email to  --- 



  Return to Index