Skip to content

Instantly share code, notes, and snippets.

@NaN1488
Created December 11, 2012 22:56
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 NaN1488/4263108 to your computer and use it in GitHub Desktop.
Save NaN1488/4263108 to your computer and use it in GitHub Desktop.
secure and hhtponly cookies
//bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] )
//@see http://php.net/manual/en/function.setcookie.php
setcookie("A", 'A', time()+3600, '/','a.com', 1, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment