1 session.inc backdrop_session_started($set = NULL)

Returns whether a session has been started.

File

core/includes/session.inc, line 336
User session handling functions.

Code

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