"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: ../../index.php');
exit();
} else {
// output contents
}
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

