Thanks
Can temporary files of $_SESSION be deleted automatically?
Moderator: General Moderators
Can temporary files of $_SESSION be deleted automatically?
I found that there are some temporary files in c:\tmp, and can it be deleted automatically by the system or i need to call some functions to do that.
Thanks
Thanks
if these are the session save files you cannot delete them without losing the session.
by default sessions files have names like sess_0751326cb0e59f5abc7d52cb513db1bf and contents likewhich is the serialized form of the current $_SESSION array
php should take care of those files on its own.
take a look at http://www.php.net/manual/en/ref.sessio ... axlifetime and http://www.php.net/manual/en/ref.sessio ... robability
by default sessions files have names like sess_0751326cb0e59f5abc7d52cb513db1bf and contents like
Code: Select all
node|a:2:{s:9:"traversed";a:5:{i:0;i:3;i:1;i:5;i:2;i:14;i:3;i:39;i:4;i:102;}s:19:"possible_successors";a:4:{i:0;i:95;i:1;i:104;i:2;i:103;i:3;i:129;}}php should take care of those files on its own.
take a look at http://www.php.net/manual/en/ref.sessio ... axlifetime and http://www.php.net/manual/en/ref.sessio ... robability