Home > Backend Development > PHP Tutorial > 请教一个php设置cookie有效期的有关问题

请教一个php设置cookie有效期的有关问题

WBOY
Release: 2016-06-13 11:28:19
Original
903 people have browsed it

请问一个php设置cookie有效期的问题
我在php中,设置了cookie如下:

setcookie("cookie_name", "abcd", time()+3600);

这意味着这个cookie有3600秒的有效期,如果我在第3000秒的时候刷新了页面,然后,这个cookie是重新又有了3600秒的有效期呢,还是只剩600秒?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template