Articles → .NET → How to detect session time out in .net

How to detect session time out in .net

<sessionState cookieless="false" timeout="1"></sessionState>

Dim request_session As String = Request.Headers("Cookie")
If request_session IsNot Nothing AndAlso request_session.IndexOf("ASP.NET_SessionId") >= 0 Then
           ' Redirect the page where you can give information to the user
End If

Posted By  -  Karan Gupta
Posted On  -  Thursday, March 31, 2011


Your Email Id  
Query/FeedbackCharacters remaining 250