Session_start issue

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
labnuke
Forum Newbie
Posts: 4
Joined: Tue Nov 25, 2003 1:46 pm

Session_start issue

Post 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.
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post 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
labnuke
Forum Newbie
Posts: 4
Joined: Tue Nov 25, 2003 1:46 pm

Register globals

Post 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.
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

Try a backslash instead:

f:\phpsession

and ensure that the folder exists.
labnuke
Forum Newbie
Posts: 4
Joined: Tue Nov 25, 2003 1:46 pm

Post by labnuke »

The folder exists and no effect by changing to backslash.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post 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)
labnuke
Forum Newbie
Posts: 4
Joined: Tue Nov 25, 2003 1:46 pm

Post 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.
Post Reply