You are here

function drupal_session_started in Session Proxy 7

Returns whether a session has been started.

File

./session.inc, line 78
User session proxy to an advanced component-based interface.

Code

function drupal_session_started($set = NULL) {
  if ($set) {
    throw new Exception("You cannot manually set the session state.");
  }
  return SessionProxy_Helper::getInstance()
    ->getBackend()
    ->isStarted();
}