SessionService
in package
Class SessionService
Table of Contents
- $path : Path
- $repository : SessionRepository
- $server : Server
- $url : Url
- __construct() : mixed
- SessionService constructor.
- setupSession() : void
- configureCookie() : void
- Session cookie configuration.
- configureIni() : void
- PHP ini session configuration.
- configureName() : void
- Session name configuration.
- determineSaveHandlerAndPath() : array<string|int, mixed>|array<string|int, string>
- Determines the session save handler type and path.
Properties
$path
private
Path
$path
$repository
private
SessionRepository
$repository
$server
private
Server
$server
$url
private
Url
$url
Methods
__construct()
SessionService constructor.
public
__construct(SessionRepository $repository, Url $url, Path $path, Server $server) : mixed
Parameters
- $repository : SessionRepository
- $url : Url
- $path : Path
- $server : Server
Return values
mixed —setupSession()
public
setupSession() : void
Return values
void —configureCookie()
Session cookie configuration.
private
configureCookie(string $host, string $path) : void
Parameters
- $host : string
- $path : string
Return values
void —configureIni()
PHP ini session configuration.
private
configureIni() : void
Return values
void —configureName()
Session name configuration.
private
configureName(string $host, string $webPath, string $serverPath) : void
Parameters
- $host : string
- $webPath : string
- $serverPath : string
Return values
void —determineSaveHandlerAndPath()
Determines the session save handler type and path.
private
determineSaveHandlerAndPath() : array<string|int, mixed>|array<string|int, string>