Auth0-PHP

SessionStore
in package
implements StoreInterface

Class SessionStore This class provides a layer to persist data using PHP Sessions.

Interfaces, Classes, Traits and Enums

StoreInterface
Interface StoreInterface.

Table of Contents

$configuration  : SdkConfiguration
$sessionPrefix  : string
__construct()  : mixed
SessionStore constructor.
defer()  : void
This has no effect when using sessions as the storage medium.
delete()  : void
Removes a persisted value identified by $key.
get()  : mixed
Gets persisted values identified by $key.
getSessionName()  : string
Constructs a session key name.
purge()  : void
Removes all persisted values.
set()  : void
Persists $value on $_SESSION, identified by $key.
start()  : void
This basic implementation of BaseAuth0 SDK uses PHP Sessions to store volatile data.

Properties

Methods

__construct()

SessionStore constructor.

public __construct(SdkConfiguration $configuration[, string $sessionPrefix = 'auth0' ]) : mixed
Parameters
$configuration : SdkConfiguration

Base configuration options for the SDK. See the SdkConfiguration class constructor for options.

$sessionPrefix : string = 'auth0'

a string to prefix session keys with

Return values
mixed

defer()

This has no effect when using sessions as the storage medium.

public defer(bool $deferring) : void
Parameters
$deferring : bool

whether to defer persisting the storage state

Tags
codeCoverageIgnore
Return values
void

delete()

Removes a persisted value identified by $key.

public delete(string $key) : void
Parameters
$key : string

session key to delete

Return values
void

get()

Gets persisted values identified by $key.

public get(string $key[, mixed $default = null ]) : mixed

If the value is not set, returns $default.

Parameters
$key : string

session key to set

$default : mixed = null

default to return if nothing was found

Return values
mixed

getSessionName()

Constructs a session key name.

public getSessionName(string $key) : string
Parameters
$key : string

session key name to prefix and return

Return values
string

purge()

Removes all persisted values.

public purge() : void
Return values
void

set()

Persists $value on $_SESSION, identified by $key.

public set(string $key, mixed $value) : void
Parameters
$key : string

session key to set

$value : mixed

value to use

Return values
void

start()

This basic implementation of BaseAuth0 SDK uses PHP Sessions to store volatile data.

public start() : void
Return values
void

Search results