sessions

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sat Apr 08, 2006 4:32 pm    Post subject: sessions Reply with quote

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 View user's profile Send private message Send e-mail MSN Messenger
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Apr 08, 2006 4:41 pm    Post subject: Reply with quote

Err, does it really matter?
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sat Apr 08, 2006 4:45 pm    Post subject: Reply with quote

well i just dont want my hdd getting swamped with empty session files.
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
Yami King
-


Joined: 08 Sep 2005
Posts: 120

PostPosted: Sat Apr 08, 2006 7:09 pm    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
abyssisthebest
-


Joined: 30 Jun 2005
Posts: 319
Location: Boston, UK

PostPosted: Sat Apr 08, 2006 9:09 pm    Post subject: Reply with quote

thanks
_________________
My online Portfolio
Back to top View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group