Answers for "php the best page to override cookie time"

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 page sends cookie to visitor

<?php $Month = 2592000 + time();//this adds 30 days to the current timesetcookie(UserVisit, date("F jS - g:i a"), $M
Posted by: Guest on September-29-2020

Browse Popular Code Answers by Language