You are here

function drupal_session_started in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 modules/memcache/unstable/memcache-session.inc \drupal_session_started()

Return whether a session has been started.

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

File

modules/memcache/unstable/memcache-session.inc, line 256

Code

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