src/Contao/SessionStorage.php
private function persist()
    {
        $sessionBag = $this->session->getBag($this->getSessionBagKey());
        $sessionBag->set($this->getScope(), $this->filterAttributes());

        $databaseSessionBag = $this->session->getBag($this->getDatabaseSessionBagKey());
        $databaseSessionBag->set($this->getScope(), $this->filterAttributes(true));
    }
private function persist()
    {
        $sessionBag = $this->session->getBag($this->getSessionBagKey());
        $sessionBag->set($this->getScope(), $this->filterAttributes());

        $databaseSessionBag = $this->session->getBag($this->getDatabaseSessionBagKey());
        $databaseSessionBag->set($this->getScope(), $this->filterAttributes(true));
    }
private function persist ( ) { $ sessionBag = $ this -> session -> getBag ( $ this -> getSessionBagKey ( ) ) ; $ sessionBag -> set ( $ this -> getScope ( ) , $ this -> filterAttributes ( ) ) ; $ databaseSessionBag = $ this -> session -> getBag ( $ this -> getDatabaseSessionBagKey ( ) ) ; $ databaseSessionBag -> set ( $ this -> getScope ( ) , $ this -> filterAttributes ( true ) ) ; }
Save the data to the session.

@return void
Save the data to the session .