note 76976 added to function.serialize
| From: | deminy at deminy dot net | Date: | Wed, 08 Aug 2007 16:44:38 +0000 |
| Subject: | note 76976 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129336@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 208.67.191.194
----
Manual Page -- http://www.php.net/manual/en/function.serialize.php
Edit -- https://master.php.net/note/edit/76976
Del: integrated -- https://master.php.net/note/delete/76976/integrated
Del: useless -- https://master.php.net/note/delete/76976/useless
Del: bad code -- https://master.php.net/note/delete/76976/bad+code
Del: spam -- https://master.php.net/note/delete/76976/spam
Del: non-english -- https://master.php.net/note/delete/76976/non-english
Del: in docs -- https://master.php.net/note/delete/76976/in+docs
Del: other reasons-- https://master.php.net/note/delete/76976
Reject -- https://master.php.net/note/reject/76976
Search -- https://master.php.net/manage/user-notes.php