Esempio n. 1
0
 /**
  * Resets tracking of the given event. Resets all events if event ID equals null.
  *
  * @param string $group Event group
  * @param string|null $id Event id
  *
  * @return null
  */
 public function resetEventTracker($group, $id = null)
 {
     $prefix = self::SESSION_KEY_EVENT_TIME . md5($group) . '_';
     if ($id !== null) {
         $sessionKey = $prefix . md5($id);
         if ($this->userSessionDAO->contains($sessionKey)) {
             $this->userSessionDAO->drop($sessionKey);
         }
     } else {
         $this->userSessionDAO->dropAllByPrefix($prefix);
     }
 }
 /**
  * Drops authentication.
  */
 public function dropAuthentication()
 {
     $this->userSessionDAO->drop(self::SESSION_KEY_USER_ID);
 }