note 65143 added to function.session-destroy

From: Date: Tue, 25 Apr 2006 08:21:21 +0000
Subject: note 65143 added to function.session-destroy
Groups: php.notes 
Request: Send a blank email to php-notes+get-109643@lists.php.net to get a copy of this message
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? ---- Server IP: 61.129.33.155 Probable Submitter: 220.194.103.228 (proxied: 1.0 ITC-ISA1) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.session-destroy.php Edit -- http://master.php.net/note/edit/65143 Del: integrated -- http://master.php.net/note/delete/65143/integrated Del: useless -- http://master.php.net/note/delete/65143/useless Del: bad code -- http://master.php.net/note/delete/65143/bad+code Del: spam -- http://master.php.net/note/delete/65143/spam Del: non-english -- http://master.php.net/note/delete/65143/non-english Del: in docs -- http://master.php.net/note/delete/65143/in+docs Del: other reasons-- http://master.php.net/note/delete/65143 Reject -- http://master.php.net/note/reject/65143 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109643) next »