You are here

function drupal_session_started in Drupal 7

Returns whether a session has been started.

4 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
Starts a session forcefully, preserving already set session data.
_drupal_session_regenerate_existing in includes/session.inc
Regenerates an existing session.

File

includes/session.inc, line 358
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();
}