autenticacion
| From: | yo at maximilianoyedid dot com | Date: | Thu, 05 Aug 2004 19:04:59 +0000 |
| Subject: | autenticacion | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-50683@lists.php.net to get a copy of this message | ||
Hola,
una consulta; estoy tratando de usar autenticacion con este script, lo unico que
quiero es que salga la ventana de user/pass y al ponerlo que entre; ahora mismo
no me interesa validar; sin embargo al poner user/pass vuelve a mostrar la
ventana una vez tras otra, que puede ser?
gracias
<?
if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
header("WWW-Authenticate: Basic realm='My Private Stuff'");
header("Status: 401 Access Denied");
echo 'Authorization Required.';
exit;
} else {
echo "<HTML>
<HEAD>
<TITLE>Fashion Consul</TITLE> <META HTTP-EQUIV='Content-Type'
CONTENT='text/html; charset=iso-8859-1'>
<link rel='stylesheet' type='text/css' href='estilos.css'>
</HEAD>
<FRAMESET ROWS='108,*' FRAMEBORDER='YES' BORDER='0'
FRAMESPACING='0' COLS='*'>
<FRAME NAME='sitemap' SCROLLING='yes' noresize SRC='sitemap.htm'
>
<FRAME NAME='mainFrame' SRC='2.html'>
</FRAMESET>
<NOFRAMES>
<BODY BGCOLOR='#FFFFFF' TEXT='#000000'>
</BODY>
</NOFRAMES>
</HTML>";
} ?>