mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -391,25 +391,8 @@ public class Application
|
||||
{
|
||||
session.invalidate();
|
||||
}
|
||||
|
||||
// remove the username cookie value
|
||||
Cookie authCookie = AuthenticationHelper.getAuthCookie(request);
|
||||
if (authCookie != null)
|
||||
{
|
||||
HttpServletResponse response = (HttpServletResponse) context.getExternalContext().getResponse();
|
||||
if (response.isCommitted())
|
||||
{
|
||||
// It's too late to do it now, but we can ask the login page to do it
|
||||
request.getSession().setAttribute(AuthenticationHelper.SESSION_INVALIDATED, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
authCookie.setMaxAge(0);
|
||||
response.addCookie(authCookie);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Explicitly invalidate the Alfresco ticket. This no longer happens on session expiry to allow for ticket
|
||||
// 'sharing'
|
||||
WebApplicationContext wc = FacesContextUtils.getRequiredWebApplicationContext(context);
|
||||
|
Reference in New Issue
Block a user