PHP upgrade to 5.3 from 5.2, sessions no longer get stored

Posted by Damo on Server Fault See other posts from Server Fault or by Damo
Published on 2011-08-10T20:40:23Z Indexed on 2012/09/17 3:40 UTC
Read the original article Hit count: 656

Filed under:
|
|
|

background link: http://stackoverflow.com/questions/7014945/php-upgrade-5-2-to-5-3-session-issue

I have upgraded PHP on my 2008 std server from PHP 5.2 to PHP 5.3. Following the upgrade, sessions no longer work correctly.

I have copied over the settings from my PHP.ini files which are applicable and configure new settings in line with the server or PHP's recommendations.

PHP executes fine correctly, however session data does not get saved.

I have session data stored in c:\temp. For each session created, I can see the session file in this folder. However no information gets written into the session file. Permissions wise, IUSR and EVERYONE has write access to this folder.

If I downgrade to PHP 5.2, sessions are saved correctly and the site functions correctly.

I have followed advise to ensure my code is optimised. closing session files correctly and forcing a session reset.

I'm stumped.

session

Session Support enabled Registered save handlers files user sqlite Registered serializer handlers php php_binary wddx
DirectiveLocal ValueMaster Value session.auto_startOffOff session.bug_compat_42OnOn session.bug_compat_warnOnOn session.cache_expire180180 session.cache_limiternocachenocache session.cookie_domainno valueno value session.cookie_httponlyOffOff session.cookie_lifetime00 session.cookie_path// session.cookie_secureOffOff session.entropy_fileno valueno value session.entropy_length00 session.gc_divisor100100 session.gc_maxlifetime14401440 session.gc_probability11 session.hash_bits_per_character44 session.hash_function00 session.namePHPSESSID53PHPSESSID53 session.referer_checkno valueno value session.save_handlerfilesfiles session.save_path/temp/temp session.serialize_handlerphpphp session.use_cookiesOnOn session.use_only_cookiesOnOn session.use_trans_sid00

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about php