note 118643 added to function.session-register

From: Date: Thu, 14 Jan 2016 16:47:56 +0000
Subject: note 118643 added to function.session-register
Groups: php.notes 
Request: Send a blank email to php-notes+get-204670@lists.php.net to get a copy of this message
Something that hasn't really been touch on when migrating old code, is that changes to variables made AFTER the session_register() call are still included in the session state. A lot of the implementations above only add the entry to $_SESSION[] at the point it's called. If the old code relies on this behaviour, you will either need to have code called on exit to assign back to $_SESSION, or replace it in entirety with $_SESSION usage. With over 1000 uses of the session_ functions, this is a bit daunting! ---- Server IP: 91.199.167.223 Probable Submitter: 212.87.70.178 ---- Manual Page -- http://php.net/manual/en/function.session-register.php Edit -- https://master.php.net/note/edit/118643 Del: integrated -- https://master.php.net/note/delete/118643/integrated Del: useless -- https://master.php.net/note/delete/118643/useless Del: bad code -- https://master.php.net/note/delete/118643/bad+code Del: spam -- https://master.php.net/note/delete/118643/spam Del: non-english -- https://master.php.net/note/delete/118643/non-english Del: in docs -- https://master.php.net/note/delete/118643/in+docs Del: other reasons-- https://master.php.net/note/delete/118643 Reject -- https://master.php.net/note/reject/118643 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#204670) next »