Sessions aint working

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SirChick
Forum Contributor
Posts: 125
Joined: Tue Jul 31, 2007 11:55 am

Sessions aint working

Post 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 ?
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

var_dump($Area); var_dump($streetName);

see if they are set
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
ASDen
Forum Commoner
Posts: 55
Joined: Fri Aug 24, 2007 10:27 am

Post by ASDen »

you may check tmp folder for storing (there is a problem in windows)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
Post Reply