Bug 44299 - Provide manager app with a logout button
Summary: Provide manager app with a logout button
Status: RESOLVED DUPLICATE of bug 62048
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Manager application (show other bugs)
Version: 6.0.14
Hardware: All All
: P4 enhancement (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-26 08:01 UTC by Mark Thomas
Modified: 2018-02-14 21:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Thomas 2008-01-26 08:01:54 UTC
A log out button would enable users to log out of the manager application and
end the associated session without having to close the browser window.
Comment 1 william.barker 2008-01-27 18:21:56 UTC
Only because this is Mark, i won't mark as WONTFIX.  Patches are always 
welcome :).

This can't really be done cleanly, since the Manager webapp uses BASIC auth.  
There is no way that I know of to tell the browser to stop sending the 
credentials with each request.  As a result, there is no way for the webapp to 
know that the user hasn't logged back in.  This is largely why the "logoff" 
feature was dropped from the servlet spec.

I haven't tested it, but a really dirty hack might be to send a 401 response 
to the logoff, and count on the user to hit the cancel button.

Comment 2 Mark Thomas 2008-02-27 08:59:23 UTC
A couple of options are:
1) Display a page that tells the user to close the browser.
2) Close the browser
3) A variation of http://trac-hacks.org/wiki/TrueHttpLogoutPatch
4) Display a page that tells the user to close the browser to be 100% but tries the ideas in 3 anyway.

I like 2 along with a short warning near the ogout button the closing the browser is the only guaranteed way to logoff. Simple and known to work.

I might look at this in the next several weeks.
Comment 3 Mark Thomas 2011-04-12 17:41:17 UTC
If memory serves me correctly, CSRF was the driver behind this and Tomcat 7 now has CSRF protection built in to the manager app. Given that: I was the one requesting this; no one else has requested it; and the CSRF protection makes it unnecessary, I am closing this as won't fix.
Comment 4 Konstantin Kolinko 2018-02-14 21:16:59 UTC
Changing WONTFIX status to DUPLICATE of bug 62048.

*** This bug has been marked as a duplicate of bug 62048 ***