Author: boston_ma | Posted on: 11/19/2008 8:34:40 AM | Views : 310

Hello,

I have a web application and after logon for 2mins or so without doing anything to the web app.,I got an error where I get the value out of the session state "Object reference not set to an instance of an object."  How do I avoid this error and redirect a user back to the logon page when the session state is no longer exist?  Thanks

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:





...

Go to the complete details ...