Guest User

Untitled

a guest
Oct 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. setcookie(
  2. <key>,
  3. <data here>,
  4. time()+60*60*24*30,
  5. $_SERVER['HTTP_HOST']=="localhost"?"/ivy/":"/",
  6. $_SERVER['HTTP_HOST'],
  7. $_SERVER['HTTP_HOST']=="localhost"?false:true,
  8. true
  9. );
  10.  
  11. // The documentation for it - matching up params.
  12. bool setcookie (
  13. string $name
  14. [, string $value
  15. [, int $expire = 0
  16. [, string $path
  17. [, string $domain
  18. [, bool $secure = false
  19. [, bool $httponly = false ]]]]]] )
Add Comment
Please, Sign In to add comment