[xyz-ips snippet="byCountryFeb2020"]

<script><br />
// Set timeout variables.<br />
var timoutWarning = 30000; // Display warning in 14 Mins.<br />
var timoutNow = 300000; // Timeout in 5 mins.<br />
var logoutUrl = 'http://bistrowinelist.com/byglass/'; // URL to logout page.<br />
var warningTimer;<br />
var timeoutTimer;<br />
// Start timers.<br />
function StartTimers() {<br />
    timeoutTimer = setTimeout("IdleTimeout()", timoutNow);<br />
}<br />
// Reset timers.<br />
function ResetTimers() {<br />
    clearTimeout(timeoutTimer);<br />
    StartTimers();<br />
    $("#timeout").dialog('close');<br />
}<br />
// Show idle timeout warning dialog.<br />
function IdleWarning() {<br />
    $("#timeout").dialog({<br />
        modal: true<br />
    });<br />
}<br />
// Logout the user.<br />
function IdleTimeout() {<br />
    window.location = logoutUrl;<br />
}<br />
</script>