note 76976 deleted from function.serialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 02:11:51 +0000 |
| Subject: | note 76976 deleted from function.serialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191777@lists.php.net to get a copy of this message | ||
Note Submitter: deminy at deminy dot net
----
Reply to erudd'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.