Error when logging out after authentication cookie expired
Hi,
When a member clicks the logout button on our website after their authentication cookie has expired (for example, they left the web page open without interaction for an hour), a YSOD is displayed with the message "This type of page is not served"
The logout code itself is in a partial view and uses the UmbLoginStatusController as in the following code:
@{
var loginStatusModel = Members.GetCurrentLoginStatus();
}
@if (loginStatusModel.IsLoggedIn)
{
var logoutModel = new PostRedirectModel();
logoutModel.RedirectUrl = "/";
using (Html.BeginUmbracoForm<UmbLoginStatusController>("HandleLogout"))
{
<li class="logout-li">
<button class="logout-button">Logout</button>
</li>
@Html.HiddenFor(m => logoutModel.RedirectUrl)
}
}
Does anyone know what is causing this and whether there is a solution?
Error when logging out after authentication cookie expired
Hi,
When a member clicks the logout button on our website after their authentication cookie has expired (for example, they left the web page open without interaction for an hour), a YSOD is displayed with the message "This type of page is not served"
The logout code itself is in a partial view and uses the UmbLoginStatusController as in the following code:
Does anyone know what is causing this and whether there is a solution?
Thanks
Steve
Im having a similar problem, has anyone found any solution to this yet?
Nathan
After some more digging I still can't find any way around it? anyone got a solution to it or are you able to point me in the right direction?
Thanks,
Nathan
is working on a reply...