I am trying to make a simple autologin using sessions and cookies (don't laugh at it!), but for some reason the session_decode() does not work. Here's the code:
<?
session_id($PHPSESSID);
session_start();
##CHECK FOR AUTOLOGIN
#####################
if ($PHPSESSID == "") {
if (isset($Yoyo_cookie)) {
session_register("login");
session_register("pswd");
session_decode($Yoyo_cookie);
Header("Location:http://www.domain.com/dologin.php?username=" . $login . "&password" . $pswd);
}#if
}#if
it all work, but the session variables do not get filled with session_decode and yes I h ave used session_encode() to get the string and then I stuffed the string into the cookie.
Can anyone help me? Thanks.