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:
robvde 2012-07-17 21:34:44 +04:00
parent 702084c672
commit 93c14b77e9
2 changed files with 4 additions and 1 deletions

View file

@ -72,6 +72,8 @@ namespace WebsitePanel.WebPortal
{ {
FormsAuthentication.SignOut(); FormsAuthentication.SignOut();
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"])); 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 // Separate the session ID and the MAC
@ -87,6 +89,8 @@ namespace WebsitePanel.WebPortal
{ {
FormsAuthentication.SignOut(); FormsAuthentication.SignOut();
HttpContext.Current.Response.Redirect(DefaultPage.GetPageUrl(PortalConfiguration.SiteSettings["DefaultPage"])); 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 // Strip the MAC from the cookie before ASP.NET sees it

View file

@ -35,7 +35,6 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls
{ {
private string mailboxPlanToSelect; private string mailboxPlanToSelect;
private bool addNone;
public string MailboxPlanId public string MailboxPlanId
{ {