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
$this->data = array();
// reconnect the bags to the session
$this
->loadSession();
}