var tunneltype = getParameter("tunnel");
var wsendpoint = getParameter("wsendpoint", "websocket-tunnel");
var httpendpoint = getParameter("httpendpoint", "tunnel");
+ /* Should Window close on logout */
+ window.SELF_CLOSE = getParameter("selfclose", 0); /* if 1 then the window will close on logout if 0 then the logout will redirect, defaults to 0 */
switch (tunneltype) {
case 'http':