public function setSaveHandler( $saveHandler = null )
 {
     if ( $this->innerSessionStorage instanceof NativeSessionStorage )
     {
         $this->innerSessionStorage->setSaveHandler( $saveHandler );
     }
 }
예제 #2
0
 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));
 }