You are here

public function SessionStore::delete in Auth0 Single Sign On 8.2

Removes a persisted value identified by $key.

Parameters

string $key Session key to delete.:

Return value

void

Overrides StoreInterface::delete

File

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

Class

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

Namespace

Auth0\SDK\Store

Code

public function delete($key) {
  $this
    ->initSession();
  $key_name = $this
    ->getSessionKeyName($key);
  unset($_SESSION[$key_name]);
}