[PHP-users 13645] Basic$BG'>Z$H(BMac IE 5

Hiroyuki KUROSAKI php-users@php.gr.jp
Sat, 01 Mar 2003 16:33:42 +0900 (JST)


$B$O$8$a$^$7$F!#9u:j$H?=$7$^$9!#$h$m$7$/$*4j$$$7$^$9!#(B

Apache$B$N(BBasic$BG'>ZG[2<$K$"$k%Z!<%8$G!"$b$&0lEY%f!<%6L>!"(B
$B%Q%9%o!<%I$rF~NO$5$;$FG'>Z$r:FEY<B9T$9$k$?$a$N%9%/%j%W%H$r(B
$B:n$C$F$$$F!"$O$^$C$F$7$^$$$^$7$?!#(B

$B<!$N$h$&$J%3!<%I$r;n$7$F$_$^$7$?!#(B(register_globals $B$O(B off)$B!#(B

<?php
session_start();
if (isset($_SESSION['logout'])) {
  unset($_SESSION['logout']);
  header("WWW-Authenticate: Basic realm=\"test\"");
  header("HTTP/1.0 401 Unauthorized");
  echo "Authentication required.";
  exit;
}
$_SESSION['logout'] = TRUE;
echo "Welcome.";
?>
<a href="<?= $_SERVER['PHP_SELF'] ?>">logout</a>

$B$3$l$G(Blogout$B$r%/%j%C%/$9$k$H!":FEY%f!<%6L>!"%Q%9%o!<%I$r?V$/(B
$B%@%$%"%m%0$,=P$F$/$k$b$N$H;W$C$F$$$?$N$G$9$,!"(BMac OS X$B$N(B
Internet Explorer (5.2.2 (5010.1)) $B$G$O!"%@%$%"%m%0$,=P$F(B
$B$-$^$;$s$G$7$?!#(B

Google$B$G8!:w$7$F$_$?$i!"(B[PHP-jp 9421]
http://ns1.php.gr.jp/php-jp/archives/msg09391.html
$B$,$3$l$HF1$88=>]$N$h$&$G$9!#(B

$B$b$H$b$H$3$NF0$-<+BN$,%V%i%&%60MB8$N$h$&$J$N$G!"$I$&$7$h$&$b(B
$B$J$$$N$+$b$7$l$^$;$s$,!D!#(BApache$B$N(BBasic$BG'>Z$KMj$k$3$H<+BN$r(B
$B$d$a$k$7$+J}K!$O$J$$$N$G$7$g$&$+(B?

--
Hiroyuki KUROSAKI <noir@st.rim.or.jp>
PGP key fingerprint = 6F A5 A2 78 A6 D0 6E DF  F2 BE 47 35 03 05 9C 0F