Re: $_SESSION

From: Date: Mon, 13 Jan 2003 12:14:23 +0000
Subject: Re: $_SESSION
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17811@lists.php.net to get a copy of this message
First of all; I had written the wrong save_path in php.ini. Thanks for that Rico! It had just slipped my mind. Second, Rich; The test you suggested I try, did work, but my own pages doesn't. It works only when I do: page1: <? session_start(); session_register('test'); $test = "blah"; ?> page2: <? session_start(); echo ($_SESSION['test']); ?> why?!? .bobo > don't use session_register(). > > Try creating a couple of test pages as follows... > > page1.php > <? > session_start(); > $_SESSION['test'] = 'Blah'; > ?> > > page2.php > <? > session_start(); > echo $_SESSION['test']; > ?> > > HTH > Rich > -----Original Message----- > From: Bobo Wieland [mailto:dev@elstudion.com] > Sent: 13 January 2003 10:56 > To: php-windows@lists.php.net > Subject: [PHP-WIN] $_SESSION > > > Hi... Feels like I'm spaming this list with this many questions all at once. > But here is one more: > > I'm having problems with displaying session variables now since I turned > register_globals off... > > before I had this code for a session variable: > > session_register("test"); > $test = "Hello world"; > > and to display it on another page I had to use: > session_register("test"); > echo $test //displayed 'Hello World' > > But now nothing works... > I've tried lots of different combination with session_register() and > $_SESSION[] but nothing works... How do I do this? > > I've tried making something out of what is said on php.net but I don't > understand... > > .bobo > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.windows (#17811) next »