]> granicus.if.org Git - php/commitdiff
- set default path for cookie to the root directory ("/")
authorSascha Schumann <sas@php.net>
Tue, 9 Nov 1999 14:27:56 +0000 (14:27 +0000)
committerSascha Schumann <sas@php.net>
Tue, 9 Nov 1999 14:27:56 +0000 (14:27 +0000)
- complete session documentation in php.ini-dist

ext/session/session.c
php.ini-dist

index 7a67783a10700ee5d4871226b6033c32ae51e999..edd011d310465b76feb5e52351a7494e96312e2a 100644 (file)
@@ -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)
index 6db033cc74fe71aeb10a0d86ffbc1500ca6dd9fa..3fbd9f35325438d2091bb23a98e17567fd323b6d 100644 (file)
@@ -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