nope it didn't
i will start over again trying too explain it in a better way.
Users can select if they want too be always logged in or not.
if yes there will be a cookie stored on the machine with his nickname and his md5 encoded pasword.
Then if they pay an next visit this code wil be executed:
if($_COOKIE['streetfreaks'] != "")
{
$arr = explode("|", $_COOKIE['streetfreaks']);
$locstring = "checkuser.php?nick=".$arr[0]."&pas=".$arr[1]."&cookie=yes";
header("location: $locstring");
}
This code send them too checkuser.php
Which can be looked at at the above posts.
This script (checkuser.php) serves two ffunctions:
1) too log people in using the conventional method (enter the pas and nick manualy)
2) log the people in using the cookie stuff.
The problem is: When i have an cookie set he will not log in.
But when i use the convetntional method it will.
What am i doing wrong ?