ok i started ou tby having a person login or sign-up for whatever... i then take they're information, after being entered or validated using the DB, and pass it through the url of a script that saves a cookie... the code looks something like this:
$string = array(
id=>$id,
user=>$username,
pass=>$pass
); // i know this is rather insecure...
$ser_string = serialize( $string );
$url_string = urlencode( $ser_string );
header( "Refresh: 0;url=setcookie.php?set=$url_string" );
this part works fine... now i pass it to the script that saves a cookie:
$unurl_string = urldecode( $set );
setcookie ("keeplog", $unurl_string,time()+172800); //48 hours
header( "Refresh: 0;url=main.php?type=newpet" );
exit;
But here is where the problem is... taking the saved cookie, and turning it BACK into an array :
the value, when called by the browser has a lot more slashes than just the plain urlencoded/serialized sring... so i tried:
$stripped_keeplog = stripslashes($keeplog);
which looks more like it's supposed to, but there is another problem now... it looks like a normal serialized array, but when i try to unserialize it... nothing happens... please help!
-Okami