mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
improved wording
This commit is contained in:
@@ -439,7 +439,8 @@ $config['encryption_key'] = 'flossie1234555541';
|
|||||||
| 'sess_expiration'
|
| 'sess_expiration'
|
||||||
|
|
|
|
||||||
| The number of SECONDS you want the session to last.
|
| The number of SECONDS you want the session to last.
|
||||||
| Minimum is 43200 seconds (12 hours) for security reasons.
|
| Default: 43200 seconds (12 hours).
|
||||||
|
| Setting to 0 means use the default value of 43200 seconds (12 hours).
|
||||||
|
|
|
|
||||||
| 'sess_save_path'
|
| 'sess_save_path'
|
||||||
|
|
|
|
||||||
|
|||||||
@@ -439,7 +439,8 @@ $config['encryption_key'] = '%encryptionkey%';
|
|||||||
| 'sess_expiration'
|
| 'sess_expiration'
|
||||||
|
|
|
|
||||||
| The number of SECONDS you want the session to last.
|
| The number of SECONDS you want the session to last.
|
||||||
| Minimum is 43200 seconds (12 hours) for security reasons.
|
| Default: 43200 seconds (12 hours).
|
||||||
|
| Setting to 0 means use the default value of 43200 seconds (12 hours).
|
||||||
|
|
|
|
||||||
| 'sess_save_path'
|
| 'sess_save_path'
|
||||||
|
|
|
|
||||||
|
|||||||
@@ -244,7 +244,9 @@ class CI_Session {
|
|||||||
*/
|
*/
|
||||||
protected function _configure(&$params)
|
protected function _configure(&$params)
|
||||||
{
|
{
|
||||||
// We force a minimum expiration time of 43200 seconds (12 hours) for security reasons
|
// We force a minimum expiration time of 43200 seconds (12 hours) for security reasons in case
|
||||||
|
// the config value is set to 0. This prevents hijacking of sessions on shared computers over a long period of time.
|
||||||
|
// Lower values then 43200 seconds are still allowed, but 0 is not.
|
||||||
$expiration = config_item('sess_expiration') == 0 ? 43200 : config_item('sess_expiration');
|
$expiration = config_item('sess_expiration') == 0 ? 43200 : config_item('sess_expiration');
|
||||||
|
|
||||||
if (isset($params['cookie_lifetime']))
|
if (isset($params['cookie_lifetime']))
|
||||||
|
|||||||
Reference in New Issue
Block a user