tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Example to logout on Tomcat 7 and SSL + Realm
Date Tue, 20 Sep 2011 18:11:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 9/20/2011 2:01 PM, Christopher Schultz wrote:
> I had to use mod_asis and stick this file  ("logout") on my disk:
> 
> Status: 401 Unauthorized WWW-Authenticate: Basic realm="My Realm"

Here is my config if anyone is interested:

        <Location "/logout">
          SetHandler send-as-is
          ErrorDocument 401 /logout.html
        </Location>
        <Location "/logout.html">
          Order allow,deny
          Allow from all
          Satisfy Any
        </Location>

The logout.html file contains a link back to a "regular" page that
will request credentials and then NOT log you out.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5412QACgkQ9CaO5/Lv0PBk9wCfftuSM8gA33DfNNX97yLNeVgy
D4AAoIf2Pu5hf0oTa5605lLTF+OJEUcI
=Qb90
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message