RE: [PHP] Session wierdness...

From: Date: Wed, 15 Jan 2003 20:17:41 +0000
Subject: RE: [PHP] Session wierdness...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131743@lists.php.net to get a copy of this message
Now what is the output if you do this outside of the function after registering a session var?? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: tim@hitcho.com.au > -----Original Message----- > From: Duncan Abbott [mailto:duncan@phonicmonkey.net] > Sent: Thursday, 16 January 2003 4:53 AM > To: hitcho@php.net; php-general@lists.php.net > Subject: RE: [PHP] Session wierdness... > > > I did what you suggested and I've attached the output - > there's no $_SESSIONS array in there. > > But I've managed to register session vars outside of this > function I'm having trouble with so what's going on? > > Duncan > > -----Original Message----- > From: Timothy Hitchens (HiTCHO) [mailto:hitcho@php.net] > Sent: 13 January 2003 10:04 > To: 'Duncan Abbott'; php-general@lists.php.net > Subject: RE: [PHP] Session wierdness... > > > Do this for me: > > print_r($GLOBALS); > > and see if you have the $_SESSIONS array visible.. you will > need to view the output in a text editor as the print_r won't > look good rendered in the browser. > > > Timothy Hitchens (HiTCHO) > Open Platform Consulting > e-mail: tim@hitcho.com.au > > > -----Original Message----- > > From: Duncan Abbott [mailto:duncan@phonicmonkey.net] > > Sent: Monday, 13 January 2003 1:05 AM > > To: php-general@lists.php.net > > Subject: [PHP] Session wierdness... > > > > > > I can't seem to be able to set a session var from within a > function in > > an include file.... > > > > I have a call to a function at the top of my doc (but after > > session_start()) and if I write the line: $_SESSION['userData'] = > > test1; in the function body - it does nothing... > > > > .... but if I put this statement on the line above or below > the call > > to the function, it works > > > > I've tried using session_register() instead but the same thing > > happens. The block of code is definitely being executed. > > > > Someone please please help me, I'm going insane. Thanks... > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

« previous php.general (#131743) next »