Re: References in the session

From: Date: Thu, 23 Feb 2017 01:10:45 +0000
Subject: Re: References in the session
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-98340@lists.php.net to get a copy of this message
On Wed, 2017-02-22 at 15:01 +0100, Côme Chilliet wrote: > Hello, > > In the $_SESSION documentation we can see the following warning: "You > can't use references in session variables as there is no feasible way > to restore a reference to another variable." Actually with register_globals gone that requirement should be gone so we should be able to use the same rules as in other serialisation. The biggest issue is compatibility of the serialized form (during an update sessions might be shared between different versions of PHP in some setups, with some persistent storage even longer) johannes

« previous php.internals (#98340) next »