protected bool SessionTimeout()
{
bool timeOut = false;
if (Context.Session != null)
{
if (Context.Session.IsNewSession)
{
string sCookieHeader = Page.Request.Headers["Cookie"];
if ((null != sCookieHeader) && (sCookieHeader.IndexOf("ASP.NET_SessionId") >= 0))
{
timeOut = true;
}
}
}
return timeOut;
No comments:
Post a Comment