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]
|