php man page for session_set_cookie_params

Query: session_set_cookie_params

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SESSION_SET_COOKIE_PARAMS(3)						 1					      SESSION_SET_COOKIE_PARAMS(3)

session_set_cookie_params - Set the session cookie parameters

SYNOPSIS
void session_set_cookie_params (int $lifetime, [string $path], [string $domain], [bool $secure = false], [bool $httponly = false])
DESCRIPTION
Set cookie parameters defined in the php.ini file. The effect of this function only lasts for the duration of the script. Thus, you need to call session_set_cookie_params(3) for every request and before session_start(3) is called. This function updates the runtime ini values of the corresponding PHP ini configuration keys which can be retrieved with the ini_get(3).
PARAMETERS
o $lifetime -Lifetime of the session cookie, defined in seconds. o $path -Path on the domain where the cookie will work. Use a single slash ('/') for all paths on the domain. o $domain - Cookie domain, for example 'www.php.net'. To make cookies visible on all subdomains then the domain must be prefixed with a dot like '.php.net'. o $secure - If TRUE cookie will only be sent over secure connections. o $httponly - If set to TRUE then PHP will attempt to send the httponly flag when setting the session cookie.
RETURN VALUES
No value is returned.
CHANGELOG
+--------+-------------------------------------+ |Version | | | | | | | Description | | | | +--------+-------------------------------------+ | 5.2.0 | | | | | | | The $httponly parameter was added. | | | | +--------+-------------------------------------+
SEE ALSO
session.cookie_lifetime, session.cookie_path, session.cookie_domain, session.cookie_secure, session.cookie_httponly, ses- sion_get_cookie_params(3). PHP Documentation Group SESSION_SET_COOKIE_PARAMS(3)
Related Man Pages
session_start(3) - php
apr::request::cookie(3pm) - debian
apache2::cookie(3pm) - debian
dancer::session::cookie(3pm) - debian
cgi::cookie(3pm) - suse
Similar Topics in the Unix Linux Community
Help, Installing GD Library and Enabling.
How to secure PHP in multiuser environment?
php.ini
Opcache settings (initial)
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wisecracker