CookieSessionHandler
class CookieSessionHandler implements SessionHandlerInterface
Traits
Constants
| protected REQUEST_CONTEXT_KEY_PREFIX |
Context key prefix for the current request. |
Methods
Get the number of seconds until the given DateTime.
Get the "available at" UNIX timestamp.
If the given value is an interval, convert it to a DateTime instance.
Given a start time, format the total run time for human readability.
Create a new cookie driven handler instance.
No description
No description
Create a new session ID.
Determine if the session ID exists.
No description
No description
No description
No description
Get the request instance for the current coroutine.
Details
in
InteractsWithTime at line 17
protected int
secondsUntil(DateInterval|DateTimeInterface|int $delay)
Get the number of seconds until the given DateTime.
in
InteractsWithTime at line 29
protected int
availableAt(DateInterval|DateTimeInterface|int|null $delay = 0)
Get the "available at" UNIX timestamp.
in
InteractsWithTime at line 47
protected DateTimeInterface|int
parseDateInterval(DateInterval|DateTimeInterface|int|null $delay)
If the given value is an interval, convert it to a DateTime instance.
in
InteractsWithTime at line 63
protected int
currentTime()
Get the current system time as a UNIX timestamp.
in
InteractsWithTime at line 71
protected string
runTimeForHumans(float $startTime, float|null $endTime = null)
Given a start time, format the total run time for human readability.
at line 30
__construct(QueueingFactory $cookie, int $minutes, bool $expireOnClose = false)
Create a new cookie driven handler instance.
at line 37
bool
open(string $savePath, string $sessionName)
No description
at line 42
bool
close()
No description
at line 50
string
create_sid()
Create a new session ID.
at line 58
bool
validateId(string $id)
Determine if the session ID exists.
at line 63
false|string
read(string $sessionId)
No description
at line 79
bool
write(string $sessionId, string $data)
No description
at line 89
bool
destroy(string $sessionId)
No description
at line 96
int
gc(int $lifetime)
No description
at line 104
void
setRequest(Request $request)
Set the request instance.
at line 112
protected Request
getRequest()
Get the request instance for the current coroutine.