Configuration Guide Configuring Web Authentication
<script language="javascript">
//Obtain the information of the online user, including the user name, IP address, MAC address, and associated SSID of the
online user, and available time.
function requestOnlineInfo() {
var _availTime=document.getElementById("availtime");
var script=document.createElement(“script”);
script.src="getonlineinfo"+location.search;
_availTime.appendChild(script);
}
function init() {
requestOnlineInfo ();
}
//Script that is executed when the user clicks the Logout button. The request URI is offline.htm.
function logout() {
document.logoutform.action = "./offline.htm"+location.search;
document.logoutform.submit();
window.onbeforeunload = null;
window.onunload = null;
}
</script>
<body onload="init()">
<form method="post" action="/portal/offline.htm" id="logoutform">
<input type="button" onclick="logout()" value="Logout" id="logoutButton">
</form>
<table>
<tr><td>User name:</td><td id="username"></td></tr>
<tr><td>IP address:</td><td id="userip"></td></tr>