cookie::forever($key, $value, $path = '/', $domain = null, $secure = false)

Stores a cookie forever

  • $key (string)
    The name of the cookie
  • $value (string)
    The cookie content
  • $path (string)
    The path on the server to set the cookie for
  • $domain (string)
    the domain
  • $secure (boolean)
    only sets the cookie over https
  • return (boolean)
    true: the cookie has been created, false: cookie creation failed

Is something missing or incorrect? Edit this page on Github…