Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 webform questions
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Web forms
Title:
2 webform questions
Miscellaneous
Thread ID:
00675854
Message ID:
00675854
Views:
50
#1: How can I detect when a session expires, and then move the user to a page that shows the session has expired? I put the following code in the global.asax file:
    Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
        ' Fires when the session ends
        Server.Transfer("SessionExpired.aspx")
    End Sub
But nothing ever happened. I haven't changed any default settings and I think I read that by default the session expires after twenty minutes.


#2: Kinda of related. Is it possible to close the browser? For example. I have a employee screen. If they click the logoff button I'd like to close the browser. Right now I send them back to the login in screen.

Thanks
Kirk
Next
Reply
Map
View

Click here to load this message in the networking platform