|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Session_End Pop UpI want a pop up to appear when the user's session ends. I've tried putting
some code in the Session_End sub in the global.asax, but must be using wrong code or something. I could also just redirect them to a "timed out" page, but I can't get that to work either. Can anyone help? Thanks, -- Chuck Foster Programmer Analyst Eclipsys Corporation - St. Vincent Health System Session_End is a server side event. There is no way to communicate anything
back to the client. HTTP is stateless. Once the user received the results of their request, that's it. There is no way to send any data to the user. There is no way to pop open windows, or redirect them, or anything like that. You can either wait until their next request, see that they have a new session, or are not authenticated, or whatever, and then either redirect them, or send down javascipt to pop open a new page. Or, you can have a javascript timer going off after the page loads that waits until the same amount of time has passed as the length of the session, and then does a redirect or whatever. Show quoteHide quote "chuckdfoster" <chuckdfos***@hotmail.com> wrote in message news:uA%231HqzBGHA.1008@TK2MSFTNGP12.phx.gbl... >I want a pop up to appear when the user's session ends. I've tried putting >some code in the Session_End sub in the global.asax, but must be using >wrong code or something. I could also just redirect them to a "timed out" >page, but I can't get that to work either. Can anyone help? > > Thanks, > > > -- > Chuck Foster > Programmer Analyst > Eclipsys Corporation - St. Vincent Health System >
Other interesting topics
PreInit event in usercontrol
Select string building in C# and ASP.NET ..HtmlControls.HtmlInputFile.Saveas(filename) not overwriting Application_Error does not fire download trial version of vs2005 Finally moving from classic asp to ASP.NET 2.0 w/Visual Studio 2005 need help to convert to VB 101 Question - Passing a value from one page to another ASP.NET 2.0 deployment How do I run a server side method from javascript?! |
|||||||||||||||||||||||