note 44786 added to language.types.resource

From: Date: Mon, 16 Aug 2004 17:25:50 +0000
Subject: note 44786 added to language.types.resource
Groups: php.notes 
Request: Send a blank email to php-notes+get-79853@lists.php.net to get a copy of this message
In response to yasuo_ohgaki, the reason for the inability of the $_SESSION[] variable to hold references is because a session is just a serialize()'d version of it's member variables saved under a unique filename, with this filename following the user around. $_SESSION[] is therefore limited by the constraints of the serialize() function Although this is not <i>strictly</i> true, ($_SESSION does some handling to convert messy variables (e.g. "s and ;s)) it cannot store resources due to the serialise() function's dependancy ---- Manual Page -- http://www.php.net/manual/en/language.types.resource.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44786 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44786&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44786&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#79853) next »