Hi all,

I have no problem with registering a session. As a matter of fact, I
making a site where I register 3 different levels of sessions with no
problem. The thing is when, in my header.inc (which includes
session_start(); for all the site) I tell through PHP only to show the
login form ONLY when:

!session_is_registered("user") OR !session_is_registered("admin") etc.

but it keeps showing it when registered or not... Any ideas?

Here's my code:

<!-- SNIP -->

if (!session_is_registered("user") OR !session_is_registered("admin") OR
!session_is_registered("full_admin"))
{
echo "<CENTER><FORM ACTION=\"".$CFG->wwwroot."/zonaclientes/login.php\"
METHOD=POST>";
echo "<CENTER><SPAN class=\"copy\">ZONA DE CLIENTES<BR>";
echo "Usuario:<BR>";
echo "<INPUT TYPE=text NAME=user VALUE=\"\" SIZE=15><BR>";
echo "Contrase&ntilde;a:</SPAN><BR>";
echo "<INPUT TYPE=password NAME=pass VALUE=\"\" SIZE=15><BR>";
echo "<INPUT TYPE=submit NAME=Submit VALUE=\"Ingresar\"></CENTER>";
echo "</FORM>";
echo "<HR>";
}

<-- SNIP -->

Thanks in advanced,

-----------------------
Cesar Aracena
[EMAIL PROTECTED]
http://www.icaam.com.ar
Cel: +54.299.635-6688
Tel/Fax: +54.299.477-4532
Cipolletti, Rio Negro
R8324BEG
Argentina




---------------------------
Soluciones profesionales en
 Internet y Comunicaciones
  http://www.icaam.com.ar



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to