[Phpmyadmin-devel] [Fwd: Better logout]
Michal Čihař
nijel at users.sourceforge.net
Sun Apr 18 12:46:05 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
On Sunday 18 of April 2004 19:53, Olivier Mueller wrote:
> if(!isset($_SERVER["PHP_AUTH_USER"]) || ("logout" == $cmd && !
> $logging_out)) {
> if("logout" == $cmd) {
> setcookie("logging_out", "1");
> }
> header('WWW-Authenticate: Basic realm="Theseus"');
> header('HTTP/1.0 401 Unauthorized');
> header("Status: 401 Unauthorized");
> echo "You have to authenticate<br>";
> exit;
> }
Do I understand that this is logout for HTTP mode that uses cookies?
- --
Regards
Michal Čihař
http://cihar.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAgtq53DVS6DbnVgQRAnzxAJ9/SojXguk4M7WpGPsMsW9gngOZ4ACeJtHt
sUji3hM0ClZUvW5Bqc93tcg=
=sP17
-----END PGP SIGNATURE-----
More information about the Developers
mailing list