=') ) { return session_status() === PHP_SESSION_ACTIVE ? TRUE : FALSE; } else { return session_id() === '' ? FALSE : TRUE; } } else { Warning("php_sapi_name === 'cli'"); } return FALSE; } // function is_session_started() function zm_session_clear() { session_start(); $_SESSION = array(); if ( ini_get('session.use_cookies') ) { $p = session_get_cookie_params(); # Update the cookie to expire in the past. setcookie(session_name(), '', time() - 31536000, $p['path'], $p['domain'], $p['secure'], $p['httponly']); } session_unset(); session_destroy(); } // function zm_session_clear() ?>