session time out session expire redirect login page redirect to expire paage like
yahoo
set session time out for 20 minutes
[system.web]
[sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=74.54.60.18\ver2005 ;Trusted_Connection=yes"
cookieless="false" timeout="20"/]
now code for if session is expire then re direct on your seesion is
expire page
protected void Page_PreRender(object sender, EventArgs e)
{
HttpContext.Current.Response.AppendHeader("Refresh",
Convert.ToString(((HttpContext.Current.Session.Timeout * 60) - 5)) + "; Url=
Default.aspx");
}
1 comment:
Post a Comment