note 118246 added to class.sessionhandlerinterface

From: Date: Mon, 02 Nov 2015 19:46:32 +0000
Subject: note 118246 added to class.sessionhandlerinterface
Groups: php.notes 
Request: Send a blank email to php-notes+get-204072@lists.php.net to get a copy of this message
I think there is a small "error" in the example of the class MySessionHandler in method gc(). It uses the function filemtime() whose return value is cached by PHP. Add the following line inside the foreach block in the gc() method: clearstatcache(true, $file); ---- Server IP: 72.52.91.14 Probable Submitter: 78.52.100.172 ---- Manual Page -- http://php.net/manual/en/class.sessionhandlerinterface.php Edit -- https://master.php.net/note/edit/118246 Del: integrated -- https://master.php.net/note/delete/118246/integrated Del: useless -- https://master.php.net/note/delete/118246/useless Del: bad code -- https://master.php.net/note/delete/118246/bad+code Del: spam -- https://master.php.net/note/delete/118246/spam Del: non-english -- https://master.php.net/note/delete/118246/non-english Del: in docs -- https://master.php.net/note/delete/118246/in+docs Del: other reasons-- https://master.php.net/note/delete/118246 Reject -- https://master.php.net/note/reject/118246 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204072) next »