session a question about Firefox

I recently found a website project, which the cookie can not add, anxious I stared at my PHP code meditation for a long time, then quietly open the 360 ​​browser, find the browser's cookie is normally added.

Is Firefox browser does not support cookie yet?

Somewhere suddenly I felt a moment of fear: If Firefox browser does not support cookie, then # ¥% ...... & *% & 658 ¥%

 

The source code

setcookie("temp", "a_text", time()+10);

 No matter how I refresh, you can not add.

Then I copied the code section of the official website, with the only difference I could just survive the time, people in an hour, that is, time () + 3600, I tried it, eh, really added on

Firefox may be found in a short time to live will have a variety of problems I do not know, I did not check related news, do not bother to check on their own to try a time, and this time also just to meet their demands, so he used the

I tried the survival time of one minute, that is,

 setcookie("temp", "a_text", time()+60);

 If you want to know how much is the minimum time, try it one by one

 

Guess you like

Origin www.cnblogs.com/duyuanshang/p/10936487.html