Session 3

From: Date: Tue, 08 Oct 2002 09:33:22 +0000
Subject: Session 3
Groups: php.general 
Request: Send a blank email to php-general+get-119219@lists.php.net to get a copy of this message
Sessions problems in 4.2.3, with register globals off Ok I got an email that gave me where some code was wrong, I said thanks and never tested it! Fixing the code it still dont work. SO I thought id make a simple code to test sessions, and that don't work. What am I doing wrong??!! The following code refuses to work. Always outputs "Had to set it manually": <?php session_start(); if( isset( $_SESSION['sspw'] )) { echo "The session variable is ".$_SESSION['sspw']; } else { echo "Had to set it manually"; $_SESSION['sspw'] = "test"; } ?> Thanks, Steve

« previous php.general (#119219) next »