Re: Session again !!!

From: Date: Sun, 05 Sep 2004 15:56:11 +0000
Subject: Re: Session again !!!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-195924@lists.php.net to get a copy of this message
"Dre" <dre00x@yahoo.com> wrote in message news:20040905152344.7913.qmail@pb1.pair.com... > I really did > and it behaves the same > > I tried isset() also but there is no good it still does not work !!! > > > "Afan Pasalic" <afan@afan.net> wrote in message > news:413B21FF.8080601@afan.net... > > Try use > > > > if(empty($_SESSION['uname']) > > > > instead > > > > if($_SESSION['uname'] = = "") > > > > > > Afan You should try a bit more debugging than just posting your code here. Try this at the top of your second page: print_r($_SESSION); Then you will see which values are set in $_SESSION and you can check if that is what you are expecting or not. Another idea would be using a ready made authentication/permission package like PEAR::LiveUser: http://pear.php.net/package/LiveUser Regards, Torsten Roehr

« previous php.general (#195924) next »