Session · Mecha CMS

Persistent storage using sessions.

$session::reset()

Author: Taufik Nurrohman · 178 Views

Tweet

Remove a session.

Session::reset($key = null);

Example:

Session::reset('my_session');

To remove multiple sessions:

Session::reset(['my_session', 'your_session', 'our_session']);

To remove all sessions:

Session::reset();