Skip to content

Instantly share code, notes, and snippets.

@jshcrowthe
Created January 31, 2014 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jshcrowthe/8743482 to your computer and use it in GitHub Desktop.
Save jshcrowthe/8743482 to your computer and use it in GitHub Desktop.
PHP Set Cookie
<?php
$name = 'COOKIE_NAME';
$value = 'VALUE';
$expireTime = strtotime('+1 years');
$path = '/';
setcookie($name,$value,$expireTime,$path);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment