PHP Session settings ignored?

I just read an extremely interesting post which explains an unwanted side effect of garbage collection by some Debian based systems. This cleanup process causes (maybe amongst other things) sessions to be cleared every 24 minutes, regardless of any ini setting you have set after the php.ini file is parsed (for example using ini_set() – if you are a symfony user, this is done during initialisation based on a setting in your factories.yml file).

Check it out:

3 Comments so far

  1. Hannes Magnusson on October 3rd, 2009

    No no..
    Its not regardless what you have in php.ini. It does respect php.ini, just nothing else 🙂
    Setting this option in httpd.conf, .htaccess, or in PHP script doesn’t work on Debian based systems 🙁

  2. Russ on October 3rd, 2009

    ok, fixed 🙂 Of course symfony always sets this value in php based on the setting in factories.yml and therein lies the problem!

  3. Kimberley19 on December 18th, 2009

    Good enough release just about this good post! In fact, that is worth to buy essay to receive an academic success!

Leave a reply