Page 1 of 1

PHP SESSION

Posted: Sat Oct 03, 2009 1:57 am
by agriz
Hello,

Code: Select all

<?php
session_start();
$_SESSION['test'] = 'testing';
?>
After executing this line, there is a file created in the tmp folder
The file contains the following :

test|s:6:"testing";

I can understand the first and last (it is obvious ;-) )
Can you please explain me the format of the file...?

Thanks
Mahesh

Re: PHP SESSION

Posted: Sat Oct 03, 2009 11:32 am
by mybikeisgreen
I don't know the format but just from the appearance of it, it looks like serialized data. Play around with serialize() and unserialize() to see what I mean.