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