Clear all session data in memory.
Overrides SessionStorageInterface::clear
public function clear() {
// clear out the bags
foreach ($this->bags as $bag) {
$bag
->clear();
}
// clear out the session
$_SESSION = array();
// reconnect the bags to the session
$this
->loadSession();
}