Solar_Auth_Adapter::reset()

public void Solar_Auth_Adapter::reset ( string $status = 'ANON' , array $info = array () )

Resets any authentication data in the cache.

Parameters

  • (string) $status: A Solar_Auth status string; default is Solar_Auth::ANON.

  • (array) $info: If status is Solar_Auth::VALID, populate properties with this user data, with keys for 'handle', 'email', 'moniker', 'uri', and 'uid'. If a key is empty or does not exist, its value is set to null.

Returns

  • (void)

Description

Resets any authentication data in the cache.

Typically used for idling, expiration, and logout. Calls » session_regenerate_id() to clear previous session, if any exists.



Local