SessionCookieConfig
final class SessionCookieConfig (View source)
Carries the browser cookie identity and SameSite policy for one session.
Methods
__construct(string $name, SessionCookieSameSite $sameSite, SessionCookieSecure $secure = SessionCookieSecure::Auto)
Defines the cookie identity, cross-site policy, and transport-security policy.
name()
Returns the browser cookie name that transports the session identifier.
string
sameSite()
Returns the browser cross-site delivery policy for the session cookie.
SessionCookieSameSite
secure()
Returns whether Secure follows the verified request or is always enabled.
SessionCookieSecure
Details
__construct
__construct(string $name, SessionCookieSameSite $sameSite, SessionCookieSecure $secure = SessionCookieSecure::Auto)
Defines the cookie identity, cross-site policy, and transport-security policy.
name
string
name()
Returns the browser cookie name that transports the session identifier.
sameSite
SessionCookieSameSite
sameSite()
Returns the browser cross-site delivery policy for the session cookie.
secure
SessionCookieSecure
secure()
Returns whether Secure follows the verified request or is always enabled.