You are here: Re: A "few" old session files never deleted? « PHP Programming Language « IT news, forums, messages
Re: A "few" old session files never deleted?

Posted by Mustafa Yalcin Acikyildiz on 11/24/36 11:28

your problem it is result from php bug..

i found this comments in the php.ini file.

If you are using the subdirectory option for storing session files
(see session.save_path above), then garbage collection does *not*
happen automatically. You will need to do your own garbage
collection through a shell script, cron entry, or some other method.

For example, the following script would is the equivalent of
setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
cd /path/to/sessions; find -cmin +24 | xargs rm

PHP 4.2 and less have an undocumented feature/bug that allows you to
to initialize a session variable in the global scope, albeit
register_globals
is disabled. PHP 4.3 and later will warn you, if this feature is
used.
You can disable the feature and the warning separately. At this time,
the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

---or---

Define the probability that the 'garbage collection' process is
started
on every session initialization.
The probability is calculated by using gc_probability/gc_divisor,
e.g. 1/100 means there is a 1% chance that the GC process starts
on each request.

session.gc_probability = 1
session.gc_divisor = 100

(i know, my english level is so bad. sorry for this. :P)

 

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

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