Hello I am writing a program that stores session variables based on forms through about 7 pages, on the last page for testing purposes I am outputing all the session data to the screen, when I use
$test = session_encode();
and then echo $test out I get the following
ID|s:8:"23423424";learningobjectives|s:1:"5";overall|s:1:"5";worklife|s:1:"5";courseobjectives1|s:1:"5";styleofworkbook|s:1:"5";contentofworkbook
it works fine ID = "23423424"
what does the |s:8: mean? and why is it |s:1: sometimes. Is this some kind of session delimitor? and why does it change?
Is their an easier way to explode all of the session variables into an array for easy insertion into a DB.
Thanks everyone.