I have my sessions saved into a directory on my site, and I find what users are on-line or are browsing using a script of mine.
But I want to know what the users names are as well... and this is saved into the cookie files... when it loops through the users all is fine, but I need to convert the infomation into varibles...
A normal session file's content looks like this:
username|s:4:"Oggy";password|s:7:"yeah";userid|i:1;
Normaly I would just do a string replace... but the numbers between ':' and the other ':' just before stating the value is always different...
So this is what it would look like if that number didn't exist=
$content=str_replace("username|s:","\$username=",$content);
$content="<?php" . $content . "?>";
echo $content;
then we have the varible ready to use!
But unluckly its not like that... 🙁
please help