[PHP] freeing resourses after the end of the session

2007-11-19 Thread Fernando
Hello, I made a image validation code, wich generate a image every time the user enters a page. The name of the image uses the session id, and I save it in a temporary directory. When the user close the browser (or leave the site) I would have to delete the image (or else I will

Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Richard Heyes
I made a image validation code, wich generate a image every time the user enters a page. The name of the image uses the session id, and I save it in a temporary directory. When the user close the browser (or leave the site) I would have to delete the image (or else I will start to

Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Stut
Richard Heyes wrote: I made a image validation code, wich generate a image every time the user enters a page. The name of the image uses the session id, and I save it in a temporary directory. When the user close the browser (or leave the site) I would have to delete the image (or

Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Wolf
Depending on how you are doing the session/image you could do the following: ?php // Open the temp folder where sessions are: // $session_folder // Open the folder where the temp images are held // $image_folder for ($file in $session) { $filename_array[] = $file;} if ($file in $image !=