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:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 12:09 PM
To: [EMAIL PROTECTED]
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;}}



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to