You are here

function session_save_session in Drupal 5

Same name and namespace in other branches
  1. 6 includes/session.inc \session_save_session()

Determine whether to save session data of the current request.

This function allows the caller to temporarily disable writing of session data, should the request end while performing potentially dangerous operations, such as manipulating the global $user object.

Parameters

$status: Disables writing of session data when FALSE, (re-)enables writing when TRUE.

Return value

FALSE if writing session data has been disabled. Otherwise, TRUE.

1 call to session_save_session()
sess_write in includes/session.inc

File

includes/session.inc, line 166
User session handling functions.

Code

function session_save_session($status = NULL) {
  static $save_session = TRUE;
  if (isset($status)) {
    $save_session = $status;
  }
  return $save_session;
}