Configuration Guide Configuring Web Authentication
2. (Optional) Tab with the userip ID: displays the IP address of the online user.
3. (Optional) Tab with the usermac ID: displays the MAC address of the online user.
4. (Optional) Tab with the ssid ID: displays the SSID of the online user.
5. (Optional) Tab with the availtime ID: displays the available time during which the user can access the Internet.
6. (Mandatory) Logout button: allows the user to go offline and requests the display of the offline page.
When the online page is loaded, a request is sent using the GET method to retrieve user information from the server,
including the user name, IP address, MAC address, and associated SSID of the online user, and available time. The URI is
getonlineinfo. The onload method of the body in the HTML code must be used. The following script is used to request user
information from the server (the script is only one example):
<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>
<body onload="init()">
……
</body>
The HTML source code of the online page is as follows:
<html>
<head>
<title>Web authentication online page</title>
</head>