Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello All,

Please give me your suggestion about ASP.NET session timeout.

I would like to transfer current page to Default.aspx page when the session timeout. I am using IsNewSeesion property from the OnPreInit method of the current page to check whether the session timeout and redirect to the default page.

I have tried to redirect Default.aspx page from the Session_End method of the Global.asax but I have received Object null exception, so get around this I am trying IsNewSession property.

So please tell is the IsNewSession property is good way to handle this situation.

Robin
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900