Hi friends,
I am faceing a very common problem in a cookie witth php3.On my local envirnment it is working fine but when i upload code on my server there some proble don't know what ,it not shows the value of cookie.
Syntax which i am using are here :
$checkUser="select user_id,user_type from login where user_id='$uname' and password='$pass'";
$result=mysql_query($checkUser,$dbm);
$row=mysql_fetch_row($result);
deleteCookies();
setcookie("cookie_user",$uname,time()+1200,"","www.weddinglock.com");
setcookie("cookie_passwd",$pass,time()+1200,"","www.weddinglock.com");
setcookie("cookie_type",$row[1],time()+1200,"","www.weddinglock.com");
header("Location:http://www.weddinglock.com/link.php");
exit();