private function resetSessionState() { $last_req = owa_coreAPI::getState('s', 'last_req'); owa_coreAPI::clearState('s'); owa_coreAPI::setState('s', 'last_req', $last_req); }
/** * Log request properties of the first hit from a new visitor to a special cookie. * * This is used to determine if the request is made by an actual browser instead * of a robot with spoofed or unknown user agent. * * @access public */ function log_first_hit() { $state_name = owa_coreAPI::getSetting('base', 'first_hit_param'); $this->event->set('event_type', 'base.first_page_request'); return owa_coreAPI::setState($state_name, '', $this->event->getProperties(), 'cookie', true); }
function setSiteSessionState($site_id, $name, $value, $store_type = 'cookie') { $store_name = owa_coreAPI::getSetting('base', 'site_session_param') . '_' . $site_id; return owa_coreAPI::setState($store_name, $name, $value, $store_type, true); }