Answers for "php 7.12.4 set cookie"

PHP
2

php set cookie

<?php
  $name = 'COOKIE_NAME';
  $value = 'VALUE';
  $expireTime = strtotime('+1 years');
  $path = '/';
  setcookie($name,$value,$expireTime,$path);
Posted by: Guest on December-09-2020
0

php set cookie for 5 second

setcookie("logOut", "Log Out Done!",time() + 5 // you can set any number like 6,7,8 );
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language