registering session with user and password
| From: | Tomás Rodriguez Orta | Date: | Wed, 06 Apr 2005 00:41:41 +0000 |
| Subject: | registering session with user and password | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212306@lists.php.net to get a copy of this message | ||
Hi, people.
I want to register all session of my web sitie, by the way in my index web I
register all user with your username and password
session_start();
$_SESSION['username']=$username;
session_register('username');
and the other page if the user don't enter your name and password I was
redirect to the page index.php, ok?, then in these page I ask if the user
was register.
<?php
session_start();
if (session_is_registered('username'))
{
?>
<html>
.
.
.
.
</html>
<?php } else header("Location: http://webadmin/index.php"); ?>
but I have a big problem, the session_register('username'); is'nt work,
because all the page web rediret to http://webadmin/index.php
somebody can help me?.
best regards TOMAS
-------------------------------------------------------------------------
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27
en el dominio de correo angerona.cult.cu y no se encontro ninguna coincidencia.