diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-23 19:59:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-23 19:59:17 +0000 |
commit | dcf7502003324fc12bc9cd6c354f7381537fe4a1 (patch) | |
tree | 6a1c1eff1786352051a28498041179a8b31f72d5 /sites/default | |
parent | 0bac8dad8da331391e775eba5fa3443ec67c3cfa (diff) | |
download | brdo-dcf7502003324fc12bc9cd6c354f7381537fe4a1.tar.gz brdo-dcf7502003324fc12bc9cd6c354f7381537fe4a1.tar.bz2 |
- Patch #303154 by c960657: clean-up and better document ini_set() calls in default.settings.php.
Diffstat (limited to 'sites/default')
-rw-r--r-- | sites/default/default.settings.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index e80435880..bbc62edd6 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -194,17 +194,20 @@ $update_free_access = FALSE; * See drupal_initialize_variables() in includes/bootstrap.inc for required * runtime settings and the .htaccess file for non-runtime settings. Settings * defined there should not be duplicated here so as to avoid conflict issues. + * + * Set session lifetime (in seconds), i.e. the time from the user's last visit + * to the active session may be deleted by the session garbage collector. When + * a session is deleted, authenticated users are logged out, and the contents + * of the user's $_SESSION variable is discarded. + */ +ini_set('session.gc_maxlifetime', 200000); + +/** + * Set session cookie lifetime (in seconds), i.e. the time from the session is + * created to the cookie expires, i.e. when the browser is expected to discard + * the cookie. The value 0 means "until the browser is closed". */ -ini_set('arg_separator.output', '&'); -ini_set('magic_quotes_sybase', 0); -ini_set('session.cache_expire', 200000); -ini_set('session.cache_limiter', 'none'); -ini_set('session.cookie_lifetime', 2000000); -ini_set('session.gc_maxlifetime', 200000); -ini_set('session.save_handler', 'user'); -ini_set('session.use_only_cookies', 1); -ini_set('session.use_trans_sid', 0); -ini_set('url_rewriter.tags', ''); +ini_set('session.cookie_lifetime', 2000000); /** * Drupal automatically generates a unique session cookie name for each site |