Re: Session problem

From: Date: Tue, 28 Oct 2003 00:33:12 +0000
Subject: Re: Session problem
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-167815@lists.php.net to get a copy of this message
ok, i am putting it the code in both files, now my first.php is as follows ---------------- //start the session - in all the pages session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); //store it like that $_SESSION["name"]= "Rinku"; ------------- The error msg is string(5) "EGPCS" bool(true) array(0) { } ------------------------- second.php is like this ------------------ <? //start the session - in all the pages session_start(); var_dump(ini_get('variables_order')); var_dump(isset($_SESSION)); var_dump($_SESSION); //use it anywher like this echo $_SESSION["name"]; ?> -------------------- the error msg is string(5) "EGPCS" bool(true) array(0) { } Notice: Undefined index: name in C:\Project Codes\Vanderveer\www\testPHP\second.php on line 10 ---------------------- Please can u help me now in understanding it ? manisha

« previous php.general (#167815) next »