Session problem

From: Date: Tue, 21 Dec 2010 08:51:03 +0000
Subject: Session problem
Groups: php.general 
Request: Send a blank email to php-general+get-310184@lists.php.net to get a copy of this message
I'm facing the following basic problem: I have made two simple sample files to explain it: 1st file: <?php session_start(); $_SESSION['SS_user'] = "user000"; echo $_SESSION['SS_user']; echo SID; echo "<br>".session_id(); echo '<br /><a href="home.php">page 1</a>'; ?> 2nd file <?php session_start(); echo "file Home<br>"; echo session_name().'+'.session_id(); echo $_SESSION['SS_user']; ?> $_SESSION seems to be empty. Nothing is print. Session Name and session ID are the same but it seems that $_SESSION is not shared across the two files. No HTML is made before sessioni_start(). Why? I'm using PHP 5.3.4 on IIS, windows XP SP3. Tested as localhost or from another PC inside a LAN. Many thanks Walter

« previous php.general (#310184) next »