You are here: Re: File Permissions of PHP Session Files « PHP Programming Language « IT news, forums, messages
Re: File Permissions of PHP Session Files

Posted by Colin McKinnon on 11/16/33 11:29

Spendwiser wrote:

> I was trying to write a bash script to be executed by cron to clean up
> old session files that were not properly removed, eg, when the user
> didn't do a proper logout which would have activated a
> session_destroy().
>
> Apparently, the system (either PHP or apache) doesn't do 'garbage
> collection' of such files as part of its normal operation. Or am I
> missing something ?

You are missing something - the default session handler does clear up old
files. Go RTFM.

Why do you think you need different permissions to remove them using a cron
job?

(you don't)

C.

 

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

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