Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 unload?

Author  Topic 

jhermiz

3564 Posts

Posted - 2005-01-25 : 10:17:56
Am having some issues with users not properly logging out..
did enough slapping of the wrists...

I know there is no event to trigger a browser close...

But is there an overall unload of an entire application that I can do some resetting of some session variables?

Jon


Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-01-25 : 10:30:55
add
Sub Application_OnEnd()
'Application clean-up code goes here.
End Sub

in global.asax

MSDN:
look for
Global.asax, HttpApplication instances

Go with the flow & have fun! Else fight the flow
Go to Top of Page

jhermiz

3564 Posts

Posted - 2005-01-25 : 10:41:54
quote:
Originally posted by spirit1

add
Sub Application_OnEnd()
'Application clean-up code goes here.
End Sub

in global.asax

MSDN:
look for
Global.asax, HttpApplication instances

Go with the flow & have fun! Else fight the flow



I was thinking this..but will Application End trigger when the browser is closed with the X at the top right corner ?

Jon



Keeping the web experience alive -- [url]http://www.web-impulse.com[/url]
Imperfection living for perfection --
[url]http://jhermiz.blogspot.com/[/url]
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-01-25 : 10:52:00
using Session_OnEnd will probably fix this... but i'm not sure.
you could put session timeout for say 30 minutes.

Go with the flow & have fun! Else fight the flow
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2005-01-25 : 11:22:11
Jon, you may be able to do some magic with the window.onbeforeunload() javascript function.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -