You are here: Re: stale session files « PHP Programming Language « IT news, forums, messages
Re: stale session files

Posted by Dennis �lund on 12/06/05 10:01

No, there is a garbage collector that will clear out old session files.
Every time a session starts it is (by default) 1 percent chance that it
will be run.
In php.ini
session.gc_probability = 1
session.gc_divisor = 100

Change this if you like. But it will also add some extra work to the
engine if you have high rate of visitors ( = collector runs too often).
If you want a neat session handling it's quite useful to take a look at
this:
http://se.php.net/manual/en/function.session-set-save-handler.php
and store session data in a database. It will give you much more
control over the data.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация