function setIdentifier()
 {
     $this->identifier = xos_get_ip_address();
 }
    }
}
// verify the browser user agent if the feature is enabled
if (SESSION_CHECK_USER_AGENT == 'true' && $session_started == true) {
    $http_user_agent = getenv('HTTP_USER_AGENT');
    if (!isset($_SESSION['SESSION_USER_AGENT'])) {
        $_SESSION['SESSION_USER_AGENT'] = $http_user_agent;
    }
    if ($_SESSION['SESSION_USER_AGENT'] != $http_user_agent) {
        setcookie(session_name(), '', time() - 42000, $cookie_path, $cookie_domain);
        xos_redirect(xos_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
    }
}
// verify the IP address if the feature is enabled
if (SESSION_CHECK_IP_ADDRESS == 'true' && $session_started == true) {
    $ip_address = xos_get_ip_address();
    if (!isset($_SESSION['SESSION_IP_ADDRESS'])) {
        $_SESSION['SESSION_IP_ADDRESS'] = $ip_address;
    }
    if ($_SESSION['SESSION_IP_ADDRESS'] != $ip_address) {
        setcookie(session_name(), '', time() - 42000, $cookie_path, $cookie_domain);
        xos_redirect(xos_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
    }
}
// if site offline is enabled, set site offline
if (SITE_OFFLINE == 'true') {
    if ($_SESSION['access_allowed'] != 'true' && !strpos($_SERVER['REQUEST_URI'], FILENAME_OFFLINE)) {
        xos_redirect(xos_href_link(FILENAME_OFFLINE, '', 'SSL'));
    }
} else {
    unset($_SESSION['access_allowed']);