View previous topic :: View next topic |
Author |
Message |
abyssisthebest -
Joined: 30 Jun 2005 Posts: 319 Location: Boston, UK
|
Posted: Sat Apr 08, 2006 4:32 pm Post subject: sessions |
|
|
I have made a login script, and i have changed the values in the php.ini to allow sessions and to save the temp data.
How ever, when the session is active the file size for that session is 1KB and when the session ends the size drops to 0KB. But the file stays there. I dont need the files as the sessions are only used for a login script. _________________ My online Portfolio |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Sat Apr 08, 2006 4:41 pm Post subject: |
|
|
Err, does it really matter? _________________
|
|
Back to top |
|
|
abyssisthebest -
Joined: 30 Jun 2005 Posts: 319 Location: Boston, UK
|
Posted: Sat Apr 08, 2006 4:45 pm Post subject: |
|
|
well i just dont want my hdd getting swamped with empty session files. _________________ My online Portfolio |
|
Back to top |
|
|
Yami King -
Joined: 08 Sep 2005 Posts: 120
|
Posted: Sat Apr 08, 2006 7:09 pm Post subject: |
|
|
You could use a cronjob kind of thing and execute a script like this:
Code: | <?php
$files = scandir("path/to/session/data/");
foreach ($files as $file) {
if (file_size($file) == 0) {
unlink($file);
}
}
?> |
something like this.. |
|
Back to top |
|
|
abyssisthebest -
Joined: 30 Jun 2005 Posts: 319 Location: Boston, UK
|
|
Back to top |
|
|
|