Aquarionics

Thursday 22nd December 2005

PHP sessions in Debian Sarge

This is how debian Woody (and all sane systems) clean up PHP disk based (the default) sessions:

  1. Every x (default: 1000) requests, PHP will delete all outdated sessions.

This is how Debian Sarge does it:

  1. Every half hour (at 9 and 39 past) run a script
  2. This script runs a second shell script that parses the PHP config file with a regex to get the value for how long sessions should last (Which is odd, because a PHP script will get this automatically)
  3. The first script will then find all session files older than that value
  4. Delete them.

WHY? WHY WHY WHY?

This is the kind of braindead overcomplication stuff I’d expect from Gentoo, but the whole point of Debian is that it’s /sane/.

Those who spoke on this:

gravatar image

Kian Ryan:

2005-12-23 12:35 1 day after the Original Article

Oy! Gentoo can be quite elegant at times!

Comment Link


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.


Aquarion's last Twitter was: [updating]
Twitter last updated


More Journal:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.620 seconds, 16 queries, 2.65Mb on Wed, 01 Oct 2008 18:02:35 +0000
Generated by Epistula Version 2.0.3