From: Debian PHP Maintainers Date: Sat, 2 May 2015 08:26:54 +0000 (+0200) Subject: session_save_path X-Git-Tag: archive/raspbian/8.4.11-1+rpi1~1^2~36 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6fd911b1f873505b44e0f874433f9dbe6317d3f0;p=php8.4.git session_save_path Gbp-Pq: Name 0010-session_save_path.patch --- diff --git a/ext/session/session.c b/ext/session/session.c index bd940ded..0abf4105 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -778,7 +778,7 @@ static PHP_INI_MH(OnUpdateRfc1867Freq) /* {{{ */ /* {{{ PHP_INI */ PHP_INI_BEGIN() - STD_PHP_INI_ENTRY("session.save_path", "", PHP_INI_ALL, OnUpdateSaveDir, save_path, php_ps_globals, ps_globals) + STD_PHP_INI_ENTRY("session.save_path", "/var/lib/php/sessions", PHP_INI_ALL, OnUpdateSaveDir, save_path, php_ps_globals, ps_globals) STD_PHP_INI_ENTRY("session.name", "PHPSESSID", PHP_INI_ALL, OnUpdateName, session_name, php_ps_globals, ps_globals) PHP_INI_ENTRY("session.save_handler", "files", PHP_INI_ALL, OnUpdateSaveHandler) STD_PHP_INI_BOOLEAN("session.auto_start", "0", PHP_INI_PERDIR, OnUpdateBool, auto_start, php_ps_globals, ps_globals) diff --git a/php.ini-production b/php.ini-production index 5ecc3037..6cb3f1ae 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1374,7 +1374,7 @@ session.save_handler = files ; where MODE is the octal representation of the mode. Note that this ; does not overwrite the process's umask. ; https://php.net/session.save-path -;session.save_path = "/tmp" +;session.save_path = "/var/lib/php/sessions" ; Whether to use strict session mode. ; Strict session mode does not accept an uninitialized session ID, and