September 2001
Intermediate to advanced
768 pages
32h 45m
English
void session_set_cookie_params(int cookie_lifetime, [string cookie_path], [string cookie_domain])
Sets session cookie parameters.
Returns:
void
Description:
Sets parameters for the cookie that holds the session information. This default data can be set in the PHP initialization file. Setting cookie information this way only lasts during the lifetime of the script in which the function is called. See setcookie() for an explanation of cookie parameters.
Version:
Existing since version 4.0
Example:
session_start(); session_set_cookie_params(3600); |
Read now
Unlock full access