[PHP] Re: Session again !!!

2004-09-05 Thread Dre
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

[PHP] Re: Session again !!!

2004-09-05 Thread Dre
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

[PHP] Re: Session again !!!

2004-09-05 Thread Torsten Roehr
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: