com\setasign\SetaFramework\Middleware

SessionCookieHandler Class SessionCookieHandler - Forked from Relay.Middleware

File: /SetaFramework/src/Middleware/SessionCookieHandler.php

No Support for session_cache_expire and session_cache_limiter

Needed for setting the session cookie. Otherwise, using cookies wouldn't be possible because php overwrites them all.

Class hierarchy

Implements

  • \Psr\Http\Server\MiddlewareInterface

Summary

Methods

__construct()

public SessionCookieHandler::__construct (
bool $warnOnInvalidConfiguration = false
)
Parameters
$warnOnInvalidConfiguration: bool
 

createCookie()

protected SessionCookieHandler::createCookie (
string $cookieName,
string $sessionId
): \Dflydev\FigCookies\SetCookie
Parameters
$cookieName: string
 
$sessionId: string
 

process()

public SessionCookieHandler::process (
\Psr\Http\Message\ServerRequestInterface $request,
\Psr\Http\Server\RequestHandlerInterface $handler
): \Psr\Http\Message\ResponseInterface
Parameters
$request: \Psr\Http\Message\ServerRequestInterface
 
$handler: \Psr\Http\Server\RequestHandlerInterface