How do you associate a temp file with a session so PHP automatically deletes
it when garbage collection occurs
-Original Message-
From: Chris Lambert - WhiteCrown Networks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 11:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] deletion
One way to do this is to create a special directory in htdocs reserved only
for temporary files. Add the following line to crontab or a user with
permissions to delete:
0 * * * * find /usr/local/apache/sitename/htdocs/specialdir/ -cmin
+1440 -exec -rm -f {}
Every hour this script will delete al
Sessions support garbage removal, where the temp files will be deleted at a
random time after the user has left.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Anurag Bhalla
3 matches
Mail list logo