Removes session information for the given configuration, and allows the configuration's
adapter to perform any associated cleanup tasks.
public static clear ( string $name, array $options = [] ) : void | ||
$name | string | The name of the `Auth` configuration to clear the login information for. Calls the `clear()` method of the given configuration's adapter, and removes the information in the session key used by this configuration. |
$options | array | Additional options used when clearing the authenticated session. See each adapter's `clear()` method for all available options. Global options: - `'clearSession'` _boolean_: If `true` (the default), session data for the specified configuration is removed, otherwise it is retained. |
Результат | void |