after I moved data to new server, my authentication script does not work, it says "thank for looging" but when it proeced, to the next pages it asks toe re-login..
after sending a lot of time, I am not sure if its a script error or the server. the same script works great on MANY other servers but not on tihs speciic server.
after spending almost 3 hours, I have found that if I add time() to the cookie, its not saved, but if time() is not added cookie is saved..
thi works fine
setcookie ("cName", "cookieone");
but this does not work
setcookie ("cName", "cookieone", time() + 3600);
my code for loggin user is
$val has different values, I just put random here to give u an idea..
can anyone tell me what could be wrong ? this script works fine on other server, but this server has PHP Version 5.2.4
$val = "1,ss";
$cdomain = ".mysite.com";
echo 'Please set your browser cookies ON, in order to log in.';
echo "successfuly logged, redirecting to blah blah blah...";
thanks for your time..