You are here

private function SessionStore::initSession in Auth0 Single Sign On 8.2

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

Return value

void

3 calls to SessionStore::initSession()
SessionStore::delete in vendor/auth0/auth0-php/src/Store/SessionStore.php
Removes a persisted value identified by $key.
SessionStore::get in vendor/auth0/auth0-php/src/Store/SessionStore.php
Gets persisted values identified by $key. If the value is not set, returns $default.
SessionStore::set in vendor/auth0/auth0-php/src/Store/SessionStore.php
Persists $value on $_SESSION, identified by $key.

File

vendor/auth0/auth0-php/src/Store/SessionStore.php, line 54

Class

SessionStore
This class provides a layer to persist user access using PHP Sessions.

Namespace

Auth0\SDK\Store

Code

private function initSession() {
  if (!session_id()) {
    if (!empty($this->session_cookie_expires)) {
      session_set_cookie_params($this->session_cookie_expires);
    }
    session_start();
  }
}