summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-09 14:27:56 +0000
committerSascha Schumann <sas@php.net>1999-11-09 14:27:56 +0000
commita4ff16dd6881707edd733beb6eb5ffd4a5984d57 (patch)
tree197537effd59eff9abf10abec0de3411ead17b5f
parenteb231bb180b142f3624e7dd2912366234f9554ef (diff)
downloadphp-git-a4ff16dd6881707edd733beb6eb5ffd4a5984d57.tar.gz
- set default path for cookie to the root directory ("/")
- complete session documentation in php.ini-dist
-rw-r--r--ext/session/session.c2
-rw-r--r--php.ini-dist4
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