Re: Re: More questions about SESSION use

From: Date: Sun, 01 Feb 2009 14:26:33 +0000
Subject: Re: Re: More questions about SESSION use
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-287504@lists.php.net to get a copy of this message
> > > > This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > > true){ > > header ("Location: LogOut.php"); > > $_SESSION['user']=$UserName; > > $_SESSION['AdminID']=$AdminID; <--*I added this one originally the > > script only used 'user' and 'AdminLogin'* but passed them in urls > > } > > > > > > Is the above part not needed since the Session is already active? Should > I > > be not using the header part (honestly I havent read up on that chapter > > yet) > > Are you using session_start()? > > > Cheers > -- > David Robley > > Hi David, yes I have session_start(); on everypage very 1st line. terio

« previous php.general (#287504) next »