RE: [PHP] Reading PHP Session Files?
| From: | Rick Emery | Date: | Mon, 18 Feb 2002 18:21:17 +0000 |
| Subject: | RE: [PHP] Reading PHP Session Files? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-85242@lists.php.net to get a copy of this message | ||
You, of course, recognize this as serialized data. Therefore, simply use
unserialize(), change the data value, the serialize() it again.
-----Original Message-----
From: Devin Atencio [mailto:dreamboy@aros.net]
Sent: Monday, February 18, 2002 12:09 PM
To: php-general@lists.php.net
Subject: [PHP] Reading PHP Session Files?
I have a program that saves session information into the database. It saves
the session
info much like the PHP4 session files. I need to allow my script to pull the
session info
out of the database then update one of the fields and then write back out
the entire
session string back to the database, how can i do this?
The session info in the database looks like this:
a:1:{i:0;a:7:{s:2:"id";s:16:"Default
identity";s:8:"fullname";s:13:"Devin
Atencio";s:9:"from_addr";s:0:"";s:12:"replyto_addr";s:0:"";s:9:"signature";s
:0:"";s:10:"sig_dashes";i:0;s:9:"sig_first";i:0;}}