note 51724 added to function.session-regenerate-id

From: Date: Fri, 08 Apr 2005 15:34:00 +0000
Subject: note 51724 added to function.session-regenerate-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-87703@lists.php.net to get a copy of this message
Anyone know if an action like this is possible if php is running in safe mode? Since sess_* is created by the server process, it has the same uid/gid as that process. Unlink would not be able to delete the file as that file does not have the same uid/gid as the template it's being called from. $oldID = session_id(); session_regenerate_id(); unlink(session_save_path() . "/sess_$oldID"); ---- Manual Page -- http://www.php.net/manual/en/function.session-regenerate-id.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51724 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51724&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51724&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51724&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51724&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51724&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51724&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87703) next »