You are here

function drupal_session_started in Memcache Storage 7

Returns whether a session has been started.

3 calls to drupal_session_started()
drupal_session_commit in includes/session.inc
Commits the current session, if necessary.
drupal_session_regenerate in includes/session.inc
Called when an anonymous user becomes authenticated or vice-versa.
drupal_session_start in includes/session.inc
Forcefully starts a session, preserving already set session data.

File

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

Code

function drupal_session_started($set = NULL) {
  static $session_started = FALSE;
  if (isset($set)) {
    $session_started = $set;
  }
  return $session_started && session_id();
}