How to redirect page when session times out....
Reply
![]() |
|
|
From:
Anand Kumar
|
f you implemented Authentication like Forms authentication or Passport authentication in your applications. Then this is done automatically when the user resubmits the page after session timeouts or have a look at the below client side code
Using Window.setTimeout method body.Attributes.Add("onLoad", "window.setTimeout(""window.location.href=''""," & (Session.Timeout * 60 * 1000) + 10000 & ");") Using Meta Tag - Refresh Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) + 10) & "; url="".aspx") Both these methods will redirect the user to login page after session timeout + 10 seconds. This is how you can redirect the user to login page after session timeout without user interaction.
Cheers Anand
|
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|