note 65143 rejected from function.session-destroy by bjori

From: Date: Tue, 25 Apr 2006 08:28:00 +0000
Subject: note 65143 rejected from function.session-destroy by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109644@lists.php.net to get a copy of this message
Note Submitter: zhjwei at eyou dot com ---- When I use PHP's session, for example: <?php session_start(); $_SESSION[cnt]=date("Y/m/d H:i:s"); ?> <html> <head><head> <body> <?php echo "session=".$_SESSION[cnt]; echo "sessionID=".session_id(cnt); ?> </body> </html> It will create a temporary file,which name is sess_*** at /tmp.But after I close the browser, the temporary file is not removed.So when I open many browser on this page for several times , there are many session file on the server.How can I remove them immediately? It is better that when I close browser, the corresponding session file is removed?Is there any solution or how to config php.ini?

« previous php.notes (#109644) next »