CookieSessionHandler

class CookieSessionHandler implements SessionHandlerInterface (View source)

Properties

$cookie The cookie jar instance.
protected Request $request The request instance.

Methods

void __construct(CookieJar $cookie, int $minutes)

Create a new cookie driven handler instance.

open($savePath, $sessionName)

{@inheritDoc}

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

write($sessionId, $data)

{@inheritDoc}

destroy($sessionId)

{@inheritDoc}

gc($lifetime)

{@inheritDoc}

void setRequest(Request $request)

Set the request instance.

Details

void __construct(CookieJar $cookie, int $minutes)

Create a new cookie driven handler instance.

Parameters

CookieJar $cookie
int $minutes

Return Value

void

open($savePath, $sessionName)

{@inheritDoc}

Parameters

$savePath
$sessionName

close()

{@inheritDoc}

read($sessionId)

{@inheritDoc}

Parameters

$sessionId

write($sessionId, $data)

{@inheritDoc}

Parameters

$sessionId
$data

destroy($sessionId)

{@inheritDoc}

Parameters

$sessionId

gc($lifetime)

{@inheritDoc}

Parameters

$lifetime

void setRequest(Request $request)

Set the request instance.

Parameters

Request $request

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Session/CookieSessionHandler.html