O.P. PHP: A question for the pros
Let me start of by appologising for putting this question on a forum about Messenger Plus!. However; I know there's plenty of smart people out here that have extensive experience with PHP which is the reason why I decided to seek assistance here.
I've an issue with my webserver Apache which has been set up to use the PHP module (5.0).
I've root access to all of the server, so I can easily change everything. I've a hunch this is where things started going wrong in the first place as well. Let me detail the situation.
The problem is to do with Sessions.
My PHP scripts can successfully start sessions and I get a SESSION ID assigned for each. Session data is stored to the session.save_path I've set in my php.ini file.
When session.save_handler is set to "files"; session files are made in the folder (it's /tmp/php). They contain the session data. All well so far.
This is where it starts going wrong. Session variables are only just added to the session data file. They are never *updated*. For example; my initial session value for the variable "lang" is "nl". When I click the button to change the language to "fr"; on the next page the value of the variable changes to "fr", since it was passed using POST. My script runs _SESSION["lang"] = "fr"; on that page everything looks french; however, when we click the next link -- everything reverts to "nl" since the session data was not updated and is still "nl" in the session file. The original value.
I pray any of you have a sollution for this issue. I need to get the website of a company online *this* week. If you can't assist me -- please do redirect me elsewhere.
And no -- the issue has nothing to do with my PHP script. The code works perfectly on another server. The issue must be something to do with my apache/php/linux configuration.
For your information; the /tmp/php folder has as user "root"; as group "apache" (tried "nobody", too). As permissions the mask 770 (777 doesn't work either). I doubt permissions are the issue as the files are indeed written to disk - just not updated.
Thank you so much for you interest and moment of thought,
~lhunath
This post was edited on 10-13-2005 at 08:22 PM by lhunath.
{ - - }
|