Re: Re: More questions about SESSION use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/2/1 Terion Miller <webdev.terion@xxxxxxxxx>

> > >
> > > 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
> > > }
>

Those two lines after header() will not be executed.


> > Hi David, yes I have session_start(); on everypage very 1st line.
>
> terio
>

Show the code where your session vars are written and I would prefer using
isset() instead of empty() if you want to check if this var is set or not.

-eddy

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux