Wednesday, April 1, 2009

How to set PHP Cookie for Domain

setcookie("CookieName","cookieValue"," expire","directory path ","Domain name");
Example :

setcookie("TestCookie","hi", time()+3600,"/dir1/dir2/","mytest.com");

No comments:

Post a Comment