RE: [PHP-WIN] $_SESSION

From: Date: Mon, 13 Jan 2003 11:29:49 +0000
Subject: RE: [PHP-WIN] $_SESSION
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-17809@lists.php.net to get a copy of this message
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 (#17809) next »