private function _process_cookie($cookie) { if (PA_Login::$once_only) { PA_Login::$once_only = 0; } else { die("PA_Login::process_cookie() called more than once in a page - this is not allowed."); } // parse and validate cookie $user_id = $this->login_cookie->parse_cookie($cookie); if (empty($user_id)) { PA_Login::_unset_cookie(); return; // invalid } // success - log in PA_Login::log_in($user_id, true, "cookie"); }