src/Session/SessionMiddleware.php
public function withSaveHandler(SessionHandlerInterface $save_handler): SessionMiddleware
    {
        return new SessionMiddleware(
            $save_handler,
            $this->name,
            $this->save_path,
            $this->cache_limiter,
            $this->cache_expire,
            $this->cookie_params
        );
    }
public function withSaveHandler(SessionHandlerInterface $save_handler): SessionMiddleware
    {
        return new SessionMiddleware(
            $save_handler,
            $this->name,
            $this->save_path,
            $this->cache_limiter,
            $this->cache_expire,
            $this->cookie_params
        );
    }
public function withSaveHandler ( SessionHandlerInterface $ save_handler ) : SessionMiddleware { return new SessionMiddleware ( $ save_handler , $ this -> name , $ this -> save_path , $ this -> cache_limiter , $ this -> cache_expire , $ this -> cookie_params ) ; }
Return a new session middleware using the given session save handler.

@param \SessionHandlerInterface $save_handler
@return \Ellipse\Session\SessionMiddleware
Return a new session middleware using the given session save handler .