salut
un truc comme ça ?
$login=$_SERVER['PHP_AUTH_USER'];
$password=$_SERVER['PHP_AUTH_PW'];
couplé avec :
header('WWW-Authenticate: Basic realm="page d\'administration"');
header('HTTP/1.0 401 Unauthorized');
In a dream, I saw me, drop dead... U was here, U cried... It was just a deam, if I die, U won't cry, maybe, U'll be happy
[ Lien ]