[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/ -> Cookie.php (summary)

(no description)

File Size: 303 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Cookie:: (14 methods):
  fromString()
  __construct()
  __toString()
  getName()
  getValue()
  getDomain()
  getExpiresTime()
  getMaxAge()
  getPath()
  isSecure()
  isHttpOnly()
  isCleared()
  isRaw()
  getSameSite()


Class: Cookie  - X-Ref

Represents a cookie.

fromString($cookie, $decode = false)   X-Ref
Creates cookie from raw header string.

param: string $cookie
param: bool   $decode
return: static

__construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)   X-Ref

param: string                        $name     The name of the cookie
param: string|null                   $value    The value of the cookie
param: int|string|\DateTimeInterface $expire   The time the cookie expires
param: string                        $path     The path on the server in which the cookie will be available on
param: string|null                   $domain   The domain that the cookie is available to
param: bool                          $secure   Whether the cookie should only be transmitted over a secure HTTPS connection from the client
param: bool                          $httpOnly Whether the cookie will be made accessible only through the HTTP protocol
param: bool                          $raw      Whether the cookie value should be sent with no url encoding
param: string|null                   $sameSite Whether the cookie will be available for cross-site requests

__toString()   X-Ref
Returns the cookie as a string.

return: string The cookie

getName()   X-Ref
Gets the name of the cookie.

return: string

getValue()   X-Ref
Gets the value of the cookie.

return: string|null

getDomain()   X-Ref
Gets the domain that the cookie is available to.

return: string|null

getExpiresTime()   X-Ref
Gets the time the cookie expires.

return: int

getMaxAge()   X-Ref
Gets the max-age attribute.

return: int

getPath()   X-Ref
Gets the path on the server in which the cookie will be available on.

return: string

isSecure()   X-Ref
Checks whether the cookie should only be transmitted over a secure HTTPS connection from the client.

return: bool

isHttpOnly()   X-Ref
Checks whether the cookie will be made accessible only through the HTTP protocol.

return: bool

isCleared()   X-Ref
Whether this cookie is about to be cleared.

return: bool

isRaw()   X-Ref
Checks if the cookie value should be sent with no url encoding.

return: bool

getSameSite()   X-Ref
Gets the SameSite attribute.

return: string|null



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1