Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
dcf75020
Commit
dcf75020
authored
Dec 23, 2008
by
Dries Buytaert
Browse files
- Patch
#303154
by c960657: clean-up and better document ini_set() calls in default.settings.php.
parent
0bac8dad
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
dcf75020
...
...
@@ -403,6 +403,12 @@ function drupal_initialize_variables() {
ini_set
(
'html_errors'
,
0
);
// Don't escape quotes when reading files from the database, disk, etc.
ini_set
(
'magic_quotes_runtime'
,
'0'
);
// Use session cookies, not transparent sessions that puts the session id in
// the query string.
ini_set
(
'session.use_only_cookies'
,
'1'
);
ini_set
(
'session.use_trans_sid'
,
'1'
);
// Don't send HTTP headers using PHP's session handler.
ini_set
(
'session.cache_limiter'
,
'none'
);
}
/**
...
...
sites/default/default.settings.php
View file @
dcf75020
...
...
@@ -194,17 +194,20 @@
* 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment