Urlaubsplan
Lade ...
Suche ...
Keine Treffer
Config::Cookie Klassenreferenz
Klassendiagramm für Config::Cookie:
Zusammengehörigkeiten von Config::Cookie:

Öffentliche Attribute

string $prefix = ''
 
 $expires = 0
 
string $path = '/'
 
string $domain = ''
 
bool $secure = false
 
bool $httponly = true
 
string $samesite = 'Lax'
 
bool $raw = false
 

Dokumentation der Datenelemente

◆ $domain

string Config::Cookie::$domain = ''

Cookie Domain

Set to .your-domain.com for site-wide cookies.

◆ $expires

Config::Cookie::$expires = 0

◆ $httponly

bool Config::Cookie::$httponly = true

Cookie HTTPOnly

Cookie will only be accessible via HTTP(S) (no JavaScript).

◆ $path

string Config::Cookie::$path = '/'

Cookie Path

Typically will be a forward slash.

◆ $prefix

string Config::Cookie::$prefix = ''

Cookie Prefix

Set a cookie name prefix if you need to avoid collisions.

◆ $raw

bool Config::Cookie::$raw = false

Cookie Raw

This flag allows setting a "raw" cookie, i.e., its name and value are not URL encoded using rawurlencode().

If this is set to true, cookie names should be compliant of RFC 2616's list of allowed characters.

Siehe auch
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes
https://tools.ietf.org/html/rfc2616#section-2.2

◆ $samesite

string Config::Cookie::$samesite = 'Lax'

Cookie SameSite

Configure cookie SameSite setting. Allowed values are:

  • None
  • Lax
  • Strict
  • ''

Alternatively, you can use the constant names:

  • Cookie::SAMESITE_NONE
  • Cookie::SAMESITE_LAX
  • Cookie::SAMESITE_STRICT

Defaults to Lax for compatibility with modern browsers. Setting ‘’' (empty string) means default SameSite attribute set by browsers (Lax) will be set on cookies. If set toNone,$secure` must also be set.

PHPStan-spezifische Annotation-var 'None'|'Lax'|'Strict'|''

◆ $secure

bool Config::Cookie::$secure = false

Cookie Secure

Cookie will only be set if a secure HTTPS connection exists.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: