function action() { // Control logic // Do not log if the first_hit cookie is still present. $fh_state_name = owa_coreAPI::getSetting('base', 'first_hit_param'); $fh = owa_coreAPI::getStateParam($fh_state_name); if (!empty($fh)) { $this->e->debug('Clearing left over first first hit cookie.'); owa_coreAPI::clearState($fh_state_name); $this->e->debug('Left over first first hit cookie found...aborting request as likely a robot.'); $this->event->set('do_not_log', true); return; } // set variety of new session properties. if ($this->event->get('is_new_session')) { } }
function action() { $fh_state_name = owa_coreAPI::getSetting('base', 'first_hit_param'); //print_r($fh_state_name); $fh = owa_coreAPI::getStateParam($fh_state_name); owa_coreAPI::debug('cookiename: ' . $fh_state_name); //owa_coreAPI::debug(print_r($_COOKIE, true)); if (!empty($fh)) { $this->event->replaceProperties($fh); $this->event->setEventType('base.first_page_request'); //owa_coreAPI::debug(print_r($this->event, true)); // Delete first_hit Cookie owa_coreAPI::clearState($fh_state_name); } $this->setView('base.pixel'); $this->setViewMethod('image'); }
private function resetSessionState() { $last_req = owa_coreAPI::getState('s', 'last_req'); owa_coreAPI::clearState('s'); owa_coreAPI::setState('s', 'last_req', $last_req); }
function deleteSiteSessionState($site_id, $store_type = 'cookie') { $store_name = owa_coreAPI::getSetting('base', 'site_session_param') . '_' . $site_id; return owa_coreAPI::clearState($store_name); }
/** * Removes credentials * @return boolean */ function deleteCredentials() { return owa_coreAPI::clearState('p'); }