Answers for "set cookie lifetime php max time"

PHP
2

cookie are not set in php

setcookie('username',$username,time()+60*60*24*365);
// 'Force' the cookie to exists
$_COOKIE['username'] = $username;
Posted by: Guest on May-15-2020
0

infinite cookie good php ?

setcookie("CookieName", "CookieValue", 2147483647);
Posted by: Guest on October-06-2020

Browse Popular Code Answers by Language