. .

    @Mail.ru -

Cookies PHP

» PHP 5 » Cookies

Cookie setcookie(). , Cookie ( 16.1).

16.1. Cookie.

‹?php
// Cookie
setcookie("name");
?›

, , Cookie ( name), . , 16.2.

16.2. Cookie .

‹?php
// Cookie
setcookie("name", "value");
?›

Cookie name value. setcookie() , Cookie . Cookies ( 16.3).

16.3. Cookie

‹?php
// Cookie
setcookie("name", "value", time() + 86400);
?›

, , , . Cookie .