public function setSaveHandler( $saveHandler = null ) { if ( $this->innerSessionStorage instanceof NativeSessionStorage ) { $this->innerSessionStorage->setSaveHandler( $saveHandler ); } }
public function prodSession(SessionEvent $event) { $storage = new NativeSessionStorage(['cookie_lifetime' => ConfigQuery::read('session_config.lifetime', 0)]); $storage->setSaveHandler(new NativeFileSessionHandler(ConfigQuery::read("session_config.save_path", THELIA_ROOT . '/local/session/'))); $event->setSession($this->getSession($storage)); }