Created
December 11, 2012 22:56
-
-
Save NaN1488/4263108 to your computer and use it in GitHub Desktop.
secure and hhtponly cookies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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