PHP Setting HTTP Cookie -
i want add cookie using php browser expiration date 1 year after cookie set. have set variable name,value,path "/",domain , expiry date. however, when close browser , open website again using same browser, no cookies sent web page. happened? cookie still applicable if close window only. yet things happened when application shut down , opened again.
setcookie("lang","english",time()+365*60*60*24,"/","sub.domain.org");
this how set cookie:
$expire=time()+60*60*24*365; setcookie("name", value, $expire); to bring cookie again:
$_cookie['name']
Comments
Post a Comment