PHP 5.2.2 on Apache 2.2.4 on Windows XP
PHP 5.2.2 on Apache 2.2.4 on Windows XP
So this was another issue that was bugging me. session_start() was not resuming session. After logging in through the login page when an attempt was made to open another page the session was lost. Interestingly Internet Explorer and Mozilla were facing this problem but Opera was working happily with logins remaining valid. It wasnt even possible to login to the administration page of joomla through Mozilla and Internet Explorer. But here again Opera was working fine.
So I hunted for some solution.
At many places I found the suggestion of keeping session_start() as the first line of the script otherwise sessions could possibly be lost. But this was not supposed to be an issue with version 5.2.2 of PHP. Anyways I did so but no help.
Some said to set the session.cookie_domain should be set to proper values
like this ini_set(’session.cookie_domain’,’.yourdomain.com’) ;
or to make this change in the php.ini configuration file.
So I tried ini_set(’session.cookie_domain’,'localhost’);
and also made the change in the php.ini. But no improvement.
Another point was that the session.save_path should point to a proper directory that must exist. I did so and found session files being generated in that folder. But still no improvement
If no directory was specified then the session files went to the windowstemp directory
Next I echoed session_id() and saw that the id is changing every time session_start()
was being called.
I could find no more suggestions to correct this problem.
At last I received some Enlightenment and just without any reason I changed
the following in the php.ini file
It was :
session.cookie_path =
And I set it to:
session.cookie_path = /
And a change of 90 degree made it all Bright.
Sessions started working normally in all browsers and I could login to the Joomla administration page. One more point to be kept in mind is the presence of firewalls like zonealarm which have cookie and ad blocking features. If these features are active then also php logins will fail.
Popularity: 1% [?]















