/** * @return $this */ public function process() { $unique = empty($_COOKIE['cc']); if ($unique) { setcookie('cc', true, time() + static::SESSION_DURATION); } if ($this->_storage instanceof RWMutexAwareInterface) { $this->_storage->Lock(); } $this->_storage->addVisit($_SERVER['SERVER_NAME'], $unique); if ($this->_storage instanceof RWMutexAwareInterface) { $this->_storage->Unlock(); } return $this; }