Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

session_get_cookie_params

Description

The session_get_cookie_params of Session for PHP gets the session cookie parameters.

Syntax

session_get_cookie_params(): array

Return

Returns an array with the current session cookie information:

KeyDescription
lifetimeThe lifetime of the cookie in seconds.
pathThe path where information is stored.
domainThe domain of the cookie.
secureThe cookie should only be sent over secure connections.
httponlyThe cookie can only be accessed through the HTTP protocol.
samesiteControls the cross-domain sending of the cookie.

Examples

1 · void

<?

$return = session_get_cookie_params();

print_r($return);
Array
(
    [lifetime] => 0
    [path] => /
    [domain] => 
    [secure] => 
    [httponly] => 
    [samesite] => 
)
HomeMenu