php sessions not being read so setting a new one when not needed.
Posted on 2011-04-19
I have a page that is setting up session variables does various things and then posts back a form. The problem being that after the post back it sets up a new session for some reason and then my session information is being lost.
I am running php 5.3.5 and apache 2.2.8.
This is from the ini file,
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
The session files are being written and have the correct information in them for what has been set to the session variables for each run through but there is no carry over.
I checked the session_id() and it is different.