Page 1 of 1

Sessions aint working

Posted: Sun Sep 09, 2007 1:24 pm
by SirChick
I have created a session on a page here:

session start is in my include globally
$Open = 1;
$Area = $_POST['RegionComboBox'];
$Street = $_POST['StreetComboBox'];
$_SESSION['Area'] = $Area;
$_SESSION['StreetName'] = $Street;
$_SESSION['Open'] = $Open;

Now on a different page i put this:

Echo $_SESSION['Area'];
Echo $_SESSION['StreetName'];


Session start still exists on that page also but no echo occurs... What could be the reason ?

Posted: Sun Sep 09, 2007 3:02 pm
by s.dot
var_dump($Area); var_dump($streetName);

see if they are set

Posted: Sun Sep 09, 2007 6:27 pm
by ASDen
you may check tmp folder for storing (there is a problem in windows)

Posted: Sun Sep 09, 2007 8:14 pm
by Christopher
Read the section on sessions in the manual. There are several functions that can be used to determine if the session has started (e.g., session_id()). First make sure you session has started and it is not a php.ini configuration problem.