Was caused when recyclying the enterprise server. Encrypted session get got a lenght of 24 which resulted into a loop and finally a 500 error. When encrypted sessionid does not match, session is logged off and redirected to default page and encrypted session key restored.
This commit is contained in:
parent
702084c672
commit
93c14b77e9
2 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,8 @@ namespace WebsitePanel.WebPortal
|
|||
{
|
||||
FormsAuthentication.SignOut();
|
||||
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
||||
cookie.Value = GetSessionIDMac(cookie.Value, request.UserHostAddress, request.UserAgent, _ValidationKey);
|
||||
return;
|
||||
}
|
||||
|
||||
// Separate the session ID and the MAC
|
||||
|
@ -87,6 +89,8 @@ namespace WebsitePanel.WebPortal
|
|||
{
|
||||
FormsAuthentication.SignOut();
|
||||
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"]));
|
||||
cookie.Value = GetSessionIDMac(cookie.Value, request.UserHostAddress, request.UserAgent, _ValidationKey);
|
||||
|
||||
}
|
||||
|
||||
// Strip the MAC from the cookie before ASP.NET sees it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue