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

Reply via email to