Merge branch 'feature/remove-logout-aspx' of https://github.com/imranhaidercogworks/Umbraco-CMS into imranhaidercogworks-feature/remove-logout-aspx
# Conflicts: # src/Umbraco.Web.UI/umbraco_client/Application/UmbracoApplicationActions.js
This commit is contained in:
@@ -112,11 +112,11 @@ namespace Umbraco.Web.UI.Pages
|
||||
// Clear content as .NET transfers rendered content.
|
||||
Response.Clear();
|
||||
|
||||
// Some umbraco pages should not be loaded on timeout, but instead reload the main application in the top window. Like the treeview for instance
|
||||
if (RedirectToUmbraco)
|
||||
Response.Redirect(SystemDirectories.Umbraco + "/logout.aspx?t=" + Security.GetSessionId(), true);
|
||||
else
|
||||
Response.Redirect(SystemDirectories.Umbraco + "/logout.aspx?redir=" + Server.UrlEncode(Request.RawUrl) + "&t=" + Security.GetSessionId(), true);
|
||||
// Ensure the person is definitely logged out
|
||||
UmbracoContext.Current.Security.ClearCurrentLogin();
|
||||
|
||||
// Redirect to the login page
|
||||
Response.Redirect(SystemDirectories.Umbraco + "#/login", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user