Page 1 of 1
Session_start issue
Posted: Tue Nov 25, 2003 1:46 pm
by labnuke
I'm trying to use PHP 4.3.4 on a W2k server. The application that I'm working on is AWOL (
http://mnn.gospelcom.net/topher/awol/) an IN/OUT board application. It seems like global variables are not being set properly and session data isn't being saved. I have set the session.save_path = "f:/phpsession" . Nothing is being written to that folder to track session data. What else do I need to do to get the session data tracking to work?
Thanks for any advice.
Posted: Tue Nov 25, 2003 2:13 pm
by DuFF
In case you were not aware, concerning the global variables, is register_globals set to on in the php.ini? Starting in PHP 4.20, register_globals defaults to off in the php.ini.
More about register_globals:
http://www.php.net/register_globals
http://www.webdevforums.com/showthread.php?t=2151
Register globals
Posted: Tue Nov 25, 2003 2:17 pm
by labnuke
Register globals is turned on. That's what makes this a question in my mind as to what could be happening. I really think it is something to do with creating the session files.
Posted: Tue Nov 25, 2003 2:20 pm
by microthick
Try a backslash instead:
f:\phpsession
and ensure that the folder exists.
Posted: Tue Nov 25, 2003 2:24 pm
by labnuke
The folder exists and no effect by changing to backslash.
Posted: Wed Nov 26, 2003 4:06 am
by malcolmboston
might sound like a stupid question (but the answers normally really simple) you have called session_start() on the next page? then check the save path, if globals are turned on then there should definitely be something there (should be anyway)
Posted: Wed Nov 26, 2003 9:10 am
by labnuke
This is the AWOL application (
http://mnn.gospelcom.net/topher/awol/) and from my limited knowledge of the source code, it looks like that session_start() stuff is in an include file that's in each php script. Still nothing in the phpsession folder.