issue with setting expiry time of cookie in PHP header() vs setcookie()

后端 未结 0 480
忘了有多久
忘了有多久 2021-01-13 18:18

I want to use header() function to set a cookie with 30 day expiry time as shown below:

$exptime=time()+30*24*60*60;
header("Set-Cookie:         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题