/** * @static * @return int */ public function ckAuth() { $_SESSION['site']['flops']++; //**************************************************************** // If the session has passed 60 flops, with out any activity exit // the application. // // return an exit code //**************************************************************** if ($_SESSION['site']['flops'] < 300) { $session = new Sessions(); $session->updateSession(); return array('authorized' => true); } else { $this->unAuth(); return array('authorized' => false); } }