public function Session::save

Force the session to be saved and closed.

This method is generally not required for real sessions as the session will be automatically saved at the end of code execution.

Overrides SessionInterface::save

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Session.php, line 182

Class

Session
Session.

Namespace

Symfony\Component\HttpFoundation\Session

Code

public function save() {
  $this->storage
    ->save();
}