?? ?? 1999, Version 4.0 Beta 3
-- added getcwd() function. (Thies)
+- Added session.use_cookies option (Sascha)
+- Added getcwd() function. (Thies)
- XML_Parse_Into_Struct no longer eats data. (Thies)
- Fixed parse_url('-') crash. (Thies)
- added === operator support. (Andi & Thies, Zend library)
PHP_INI_ENTRY("session.gc_maxlifetime", "1440", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("session.lifetime", "0", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("session.serialize_handler", "php", 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)
PHP_INI_ENTRY("session.entropy_file", "", PHP_INI_ALL, NULL)
PHP_INI_ENTRY("session.entropy_length", "0", PHP_INI_ALL, NULL)
if(!PS(id)) {
PS(id) = _php_create_id(NULL PSLS_CC);
}
-
+
+ if(!PS(use_cookies) && send_cookie) {
+ define_sid = 1;
+ send_cookie = 0;
+ }
+
if(send_cookie) {
_php_session_send_cookie(PSLS_C);
}
zend_hash_init(&PS(vars), 0, NULL, NULL, 0);
PS(define_sid) = 0;
+ PS(use_cookies) = INI_INT("session.use_cookies");
PS(save_path) = estrdup(INI_STR("session.save_path"));
PS(session_name) = estrdup(INI_STR("session.name"));
PS(entropy_file) = estrdup(INI_STR("session.entropy_file"));
session.save_path = /tmp ; argument passed to save_handler
; in the case of files, this is the
; path where data files are stored
+session.use_cookies = 1 ; whether to use cookies
session.name = PHPSESSID ; name of the session
; is used as cookie name
session.auto_start = 0 ; initialize session on request startup