src/Chiron/Http/Middleware/EncryptCookiesMiddleware.php
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $request = $this->withDecryptedCookies($request);
        $response = $handler->handle($request);

        return $this->withEncryptedCookies($response);
    }
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $request = $this->withDecryptedCookies($request);
        $response = $handler->handle($request);

        return $this->withEncryptedCookies($response);
    }
public function process ( ServerRequestInterface $ request , RequestHandlerInterface $ handler ) : ResponseInterface { $ request = $ this -> withDecryptedCookies ( $ request ) ; $ response = $ handler -> handle ( $ request ) ; return $ this -> withEncryptedCookies ( $ response ) ; }
Start the session, delegate the request processing and add the session cookie to the response.

@param ServerRequestInterface  $request
@param RequestHandlerInterface $handler

@return ResponseInterface
Start the session delegate the request processing and add the session cookie to the response .