From a4ff16dd6881707edd733beb6eb5ffd4a5984d57 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Tue, 9 Nov 1999 14:27:56 +0000 Subject: [PATCH] - set default path for cookie to the root directory ("/") - complete session documentation in php.ini-dist --- ext/session/session.c | 2 +- php.ini-dist | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/session/session.c b/ext/session/session.c index 7a67783a10..edd011d310 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -70,7 +70,7 @@ PHP_INI_BEGIN() PHP_INI_ENTRY("session.gc_maxlifetime", "1440", PHP_INI_ALL, NULL) PHP_INI_ENTRY("session.serialize_handler", "php", PHP_INI_ALL, NULL) PHP_INI_ENTRY("session.cookie_lifetime", "0", PHP_INI_ALL, NULL) - PHP_INI_ENTRY("session.cookie_path", "", PHP_INI_ALL, NULL) + PHP_INI_ENTRY("session.cookie_path", "/", PHP_INI_ALL, NULL) PHP_INI_ENTRY("session.cookie_domain", "", PHP_INI_ALL, NULL) PHP_INI_ENTRY("session.use_cookies", "1", PHP_INI_ALL, NULL) PHP_INI_ENTRY("session.extern_referer_check", "", PHP_INI_ALL, NULL) diff --git a/php.ini-dist b/php.ini-dist index 6db033cc74..3fbd9f3532 100644 --- a/php.ini-dist +++ b/php.ini-dist @@ -279,8 +279,8 @@ session.name = PHPSESSID ; name of the session session.auto_start = 0 ; initialize session on request startup session.cookie_lifetime = 0 ; lifetime in seconds of cookie ; or if 0, until browser is restarted -session.cookie_path = ; -session.cookie_domain = ; +session.cookie_path = / ; the path the cookie is valid for +session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability = 1 ; procentual probability that the -- 2.40.0