芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/bd.mgaplay.com.br/vendor/selective/samesite-cookie/src/SameSiteSessionMiddleware.php
startSession = $configuration->startSession; } /** * Invoke middleware. * * @param ServerRequestInterface $request The request * @param RequestHandlerInterface $handler The handler * * @return ResponseInterface The response */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { // Start session if ($this->startSession === true && session_status() !== PHP_SESSION_ACTIVE) { session_start(); } $request = $request ->withAttribute('session_id', session_id()) ->withAttribute('session_name', session_name()) ->withAttribute('session_cookie_params', session_get_cookie_params()); return $handler->handle($request); } }