note 76977 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:31:54 +0000
Subject: note 76977 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191711@lists.php.net to get a copy of this message
Note Submitter: deminy at deminy dot net ---- Reply to eoin's post: The regular expression you used to unserialize a PHP session file won't work if the session file contains string variable which contains character "|". As I can see now, there is no any regular expression that can easily split data in a PHP session file. To read data from a session file, we may have to write a function to read content from the file, and then parse the content. (This reply was also posted at http://www.php.net/manual/en/function.serialize.php to reply Erudd's post)

« previous php.notes (#191711) next »