public function storeSession(Session $session) { $this->sessions[$session->getUsername()] = $session; }
public function storeSession(Session $session) { $filename = $this->generateFilename($session->getUsername()); file_put_contents($filename, serialize($session)); }