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
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

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to