Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php session handling in Apache on Windows 2000

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I've installed Apache 1.3.23 on Windows 2000 and PHP 4.1.2 on it. I can't seem to get any session variables set using any of $_SESSION/$HTTP_SESSION_VARS/session_register() methods to work. My temp file is valid and track_vars is turned on. I can see that in the temp folder my session vars are stored in files but nothing is being written to it. Therefore, my session vars don't get carried across state. Anybody who came across this and solved it? If you can let me know, that would be greatly appreciated. thank you.
 
are you calling session_start() on EVERY page you want to use session data on?
 
Yes, i've put session_start() on every page. I've ported this my system onto a similar environment in Linux and it works perfectly with no errors. All session variables were returned. Just that on Windows, for some reason, my session files were not being written to. They were created however, but just not written to when i write to session data. Thus, the session never persisted. Thanks for all you help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top