Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
Just use a session_start() before any output to the server, and the > sessions array will be available to your code. > > > Ash > www.ashleysheridan.co.uk > > Ah ha...and now I know why my O'reilly book Web Database Applications with PHP was so inexpensive... :) it's outdated...oops...

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Ashley Sheridan
On Thu, 2009-02-05 at 11:16 -0600, Terion Miller wrote: > On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > > > Edmund Hertle wrote: > > > >> 2009/2/1 Terion Miller > >> > >> This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > > > >

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread VamVan
On Thu, Feb 5, 2009 at 9:16 AM, Terion Miller wrote: > On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > > > Edmund Hertle wrote: > > > >> 2009/2/1 Terion Miller > >> > >> This is how it was originally written: > > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > > >

Re: [PHP] Re: More questions about SESSION use

2009-02-05 Thread Terion Miller
On Mon, Feb 2, 2009 at 4:18 PM, Chris wrote: > Edmund Hertle wrote: > >> 2009/2/1 Terion Miller >> >> This is how it was originally written: > if (empty($_SESSION['AdminLogin']) || $_SESSION['AdminLogin'] != > true){ >>> header ("Location: LogOut.php"); >$_SESSION[

Re: [PHP] Re: More questions about SESSION use

2009-02-02 Thread Chris
Edmund Hertle wrote: 2009/2/1 Terion Miller 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

Re: [PHP] Re: More questions about SESSION use

2009-02-02 Thread Terion Miller
> 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 > Hi All, here is the index page where users login and the sessions are set: 0) { $_SESSION['AdminLogin'] = true; $_SES

Re: [PHP] Re: More questions about SESSION use

2009-02-02 Thread Edmund Hertle
2009/2/1 Terion Miller > > > > > > 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 on

Re: [PHP] Re: More questions about SESSION use

2009-02-01 Thread Terion Miller
> > > > 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 '

[PHP] Re: More questions about SESSION use

2009-01-31 Thread David Robley
Terion Miller wrote: > So now I have SESSIONs set: user, AdminID, AdminLogin > > but I'm trying to use them without showing them in links...currently the > pages only load if I make the links like this: > > target="mainFrame">Home > > I thought the whole purpose of having/using Sessions is to