SessionInterface

interface SessionInterface implements SessionInterface (View source)

Methods

bool exists(string|array $key)

Checks if an attribute exists.

SessionHandlerInterface getHandler()

Get the session handler instance.

bool handlerNeedsRequest()

Determine if the session handler needs a request.

void setRequestOnHandler(Request $request)

Set the request on the handler instance.

Details

bool exists(string|array $key)

Checks if an attribute exists.

Parameters

string|array $key

Return Value

bool

SessionHandlerInterface getHandler()

Get the session handler instance.

bool handlerNeedsRequest()

Determine if the session handler needs a request.

Return Value

bool

void setRequestOnHandler(Request $request)

Set the request on the handler 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/5.6/Illuminate/Session/SessionInterface.html