diff options
Diffstat (limited to 'includes/session.inc')
-rw-r--r-- | includes/session.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/session.inc b/includes/session.inc index aa06db4ca..e6bcde173 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -169,7 +169,7 @@ function _sess_write($key, $value) { * TRUE if session has already been started, or FALSE if it has not. */ function drupal_session_start($start = TRUE) { - static $started = FALSE; + $started = &drupal_static(__FUNCTION__, FALSE); if ($start && !$started) { $started = TRUE; session_start(); @@ -329,7 +329,7 @@ function _sess_gc($lifetime) { * FALSE if writing session data has been disabled. Otherwise, TRUE. */ function drupal_save_session($status = NULL) { - static $save_session = TRUE; + $save_session = &drupal_static(__FUNCTION__, TRUE); if (isset($status)) { $save_session = $status; } |