note 20375 deleted from ref.session by sniper

From: Date: Sun, 28 Jul 2002 00:58:53 +0000
Subject: note 20375 deleted from ref.session by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33762@lists.php.net to get a copy of this message
Using PHP 4.1.2 on IIS 5.0, Win2k, haven't migrated app yet to Linux (later!) Managed to eventually get the sessions to work as follows. In the php.ini, session.auto_start = 1 Then without a session_start(); $xvar = "something" ; Use session_register("xvar"); then u CAN retrieve from a later page using the new way: $var = $_SESSION["xvar"] ; also without session_start(); even doing a var_dump($_SESSION); seems to work at least some of the time! The odd thing is that storing vars using the new way: $_SESSION["xvar"] = "something"; will save only for the CURRENT page, this gets lost when moving on to the next page! best regards Mike

« previous php.notes (#33762) next »