PHP SESSION

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

PHP SESSION

Post 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
mybikeisgreen
Forum Newbie
Posts: 22
Joined: Thu Oct 01, 2009 6:22 pm

Re: PHP SESSION

Post 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.
Post Reply