diff options
author | Andrey Andreev <narf@devilix.net> | 2016-04-01 21:54:15 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-04-01 21:54:15 +0200 |
commit | 85dfc2a6f76ca95e803535c25877e2aa1c05c38b (patch) | |
tree | d8b03cd1699f6aa7400952d778d95136bf635638 /system/libraries/Session/drivers | |
parent | f8312cfa38d2793f1b365f918395019f343fe1c0 (diff) |
[ci skip] Add some 'debug' log messages to CI_Session
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r-- | system/libraries/Session/drivers/Session_database_driver.php | 5 | ||||
-rw-r--r-- | system/libraries/Session/drivers/Session_files_driver.php | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_database_driver.php b/system/libraries/Session/drivers/Session_database_driver.php index 317bd7d4d..cb152f91f 100644 --- a/system/libraries/Session/drivers/Session_database_driver.php +++ b/system/libraries/Session/drivers/Session_database_driver.php @@ -109,7 +109,10 @@ class CI_Session_database_driver extends CI_Session_driver implements SessionHan } // Note: BC work-around for the old 'sess_table_name' setting, should be removed in the future. - isset($this->_config['save_path']) OR $this->_config['save_path'] = config_item('sess_table_name'); + if ( ! isset($this->_config['save_path']) && ($this->_config['save_path'] = config_item('sess_table_name'))) + { + log_message('debug', 'Session: "sess_save_path" is empty; using BC fallback to "sess_table_name".'); + } } // ------------------------------------------------------------------------ diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php index 119bf6572..57c3777a2 100644 --- a/system/libraries/Session/drivers/Session_files_driver.php +++ b/system/libraries/Session/drivers/Session_files_driver.php @@ -95,6 +95,7 @@ class CI_Session_files_driver extends CI_Session_driver implements SessionHandle } else { + log_message('debug', 'Session: "sess_save_path" is empty; using "session.save_path" value from php.ini.'); $this->_config['save_path'] = rtrim(ini_get('session.save_path'), '/\\'); } } |