hello community,
i have a problem with session in my webapplication (asp.net mvc rc2). the application works fine on asp.net mvc rc1.
i use the follow code for session timeout handling:
if (cnt.Current.Session != null)
{
if (cnt.Current.Session.IsNewSession)
{
string cookie = cnt.Current.Request.Headers["Cookie"];
if ((null != cookie && (cookie.IndexOf("ASP.NET_SessionId") >= 0))
{
return true;
}
}
}
when i becomes a session timeout, use the FormsAuthentication.SignOut();
method for user logout an redirect to the loginpage.
after the new login is cnt.Current.Session.IsNewSession
always true!! (BUG?)
on rc1 works fine.