Hi,
I'm having problems with cookies that disappear. For instance, I have some sort of session cookie (home-made, no PHP sessions), which only changes when someone logs out (I set them with empty strings to clear them). But every now and then users are logged out automatically. The cookies just disappear, bith in Opera and Internet Explorer.
I set my cookies like this :
setcookie("userID",$userRow['userID'],myTime()+30758400);
setcookie("usercode",md5($userRow['userID'].$secretcode),myTime()+30758400);
Is it because I don't specify the path and stuff like that? Because it WORKS, the cookies are set, but they just seem to disappear every now and then. Pretty weird.
Can anyone help me? Thanks a lot!