Forum Moderators: coopster

Message Too Old, No Replies

cookie problem

         

examnsz

3:27 am on Mar 22, 2006 (gmt 0)



hi friends:

I have a website and use cookie for customers login in

lots of customers can login in sucessfully

but some cutomers can not login in .

I check the problem is from cookie , some customers computer cookie is not working .

this is my code for cookie set

SetCookie("uuuu", $row["usern"],time()+3600*5);//
SetCookie("pppp", $row["userp"],time()+3600*5);//

anyone can help to find whether the way of set cookie have some problem?

Thanks

mrnoisy

5:01 am on Mar 22, 2006 (gmt 0)

10+ Year Member



Try setting the path as "/"

setcookie("uuuu", $row["usern"], time() + 3600*5, "/");