How to handle Session in ASP.NET with the help of Global.asax?

cawicaya

New Member
Greetings !!!I have created one application in ASP.NET 3.5. Also I have declared the session timeout in web.config file. But the problem is when ever I am keeping myself idle for sometime in a page, it is throwing me an error called "Object reference is not set to an instance of an object". Please guide me how to handle this in a better way by redirecting to log in page.Also I wanted to write one thing here is, Suppose I have opened one page (lets say Registration Page). Suppose I have opened this page and filled the form but I haven't clicked on Submit button, but after longtime I am clicking then also the session timeout should work. If the session is timed out then after button click it should redirect to log in page again.Please help me out on this then I will be thankful to you...
 
Back
Top