You are here

function session_save_session in Drupal for Facebook 6.2

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. See http://drupal.org/node/218104 for usage

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.

3 calls to session_save_session()
fb_actions_cron_per_user in contrib/fb_actions.module
Trigger an action several times, emulating a different user each time. Useful for cron jobs in which we update each users profile box, for example.
fb_app_event_cb in ./fb_app.module
Callback for FB_APP_PATH_EVENT.
sess_write in ./fb_session_impl.inc

File

./fb_session_impl.inc, line 149
Re-write of Drupal's session.inc, for facebook-controlled sessions.

Code

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