You are here

public function PhpBridgeSessionStorage::start in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage::start()

Starts the session.

Return value

bool True if started.

Throws

\RuntimeException If something goes wrong starting the session.

Overrides NativeSessionStorage::start

File

vendor/symfony/http-foundation/Session/Storage/PhpBridgeSessionStorage.php, line 39

Class

PhpBridgeSessionStorage
Allows session to be started by PHP and managed by Symfony.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function start() {
  if ($this->started) {
    return true;
  }
  $this
    ->loadSession();
  if (!$this->saveHandler
    ->isWrapper() && !$this->saveHandler
    ->isSessionHandlerInterface()) {

    // This condition matches only PHP 5.3 + internal save handlers
    $this->saveHandler
      ->setActive(true);
  }
  return true;
}