the code I use is
//=
?php session_start();
if($_SESSION['uname'] == )
{header('Location: ../../index.php');
exit();
}
else{}
?
html
... other html code
/html
//=
there are no extra spaces between the
I added print_r($_SESSION); after the session start();
and the printed text was
Array( )
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dre [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added print_r($_SESSION); after the session start();
and the printed text was
Array( )
Which means that your session value is NOT set. Your if/else should look
like this:
if (!isset($_SESSION['uname'])) {
header('Location:
3 matches
Mail list logo