264| Captive Port al Authentication DellPowerConnect W- Series ArubaOS 6.2 | User Guide
If you wish your users to be able to logout using this po p-upbox, then you must i ncludea reference to
/auth/logout.htmlOnce a user accesses this URL then the controllerwi lllog them out. I t is easiest t o simply edit the
above HTML to suit your users andt henupload the resulting file to the controllerusi ngthe WebUI under
Configuration > Management > Captive Portal > Upload custom pagesandchoo se "content” as the page type.
Onceyo u have completedyo urHTML, then you must get t he clients to create the pop-up box once they have
loggedinto the controller.This i s doneby inserting the followingc ode into your welcome pagetext and re-uploading
the welcome page text to your controller.
Common things to change:
lURL: set the URL to be the name of the pop-up HTML filethat y ou createdand uploaded. This should be
precededby "/upload/"
lWidth: set w to be the requiredwi dtho ft hepo p-upbox
lHeight:s et h to be the requiredheight of the pop-up box
lTitle: set the second parameterin the wi ndow.opencommand to be the tit leof the pop-up box. Be sure to
includethe quotes as shown:
<script language="JavaScript">
var url="/upload/popup.html";
var w=210;
var h=80;
var x=window.screen.width - w - 20;
var y=window.screen.height - h - 60;
window.open(url, 'logout', "toolbar=no,location=no,width="+w+",height="+h+",top="+y+",
left="+x+",screenX="+x+",screenY="+y);
</script>
Customizing th e Logged Ou t Box
In order to customize the Logged Out box, you must first customi ze your Welcome pageand also your Pop-Up box.
To customize the message that occurs after you have loggedout then you need to replace the URL that the pop-up
box will access in order to log out wit h your own HTML file.
First you must write the HTML web page that will actually log out the user and will also display page that you wish.
An examplepage is shown below. The key part that must be includedis the <iframe>..</iframe>sect ion.T his is
the part of the HTMLt hat actuallydoes the user logging out. The logout is always performedby t heclient access ing
the /auth/logout.htmlfile on the controllerand so i t is hidden in the htmlpage here in order to get the client to
access this page and for thec ontrollerto update its authenticati on status. If a client does not support the iframetag,
then the text betweent he<i frame>and the </iframe> is used. This is simply a 0 pixel sized image file that
references/auth/logout.html.E ither methodshould allow the client to logout from the controller.
Everything else can be customized.
<html>
<body bgcolor=white text=000000>
<iframe src='/auth/logout.html' width=0 height=0 frameborder=0><img src=/auth/logout.html
width=0 height=0></iframe>
<P><font face="Verdana, Arial, Helvetica, sans-serif" size=+1>
You have now logged out.</font></P>
<form> <input type="button" onclick="window.close()" name="close" value="Close
Window"></form>
</body>
</html>