M and MSM Series
1752810 Members
6212 Online
108789 Solutions
New Discussion юеВ

Re: Apple devices disconnects from guest network

 
Faltherren
Visitor

Apple devices disconnects from guest network

Hello!

I am at our customer who has a MSM710, software version 5.7.3.0-13117, with AP's MSM410 and MSM422. They have a guestnetwork using HTML-authentication. I know there is a problem regarding HTML-authentication and Apple devices and I am currently using the edited index.asp workaround found here: http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?sp4ts.oid=376342&spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-c02737668-2%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

 

I also added the devices iPhone and iPad after iPod in the index.asp. Apple devices can now get in to the login HTML-page and get connected with the correct IP-address, dns and gw. But after a minute or so they get disconnected. It works without any trouble on Android devices and PC's.

 

Does anyone know what I can do? Remove the HTML-authentication from the guest network?

4 REPLIES 4
lightxx1980
Occasional Advisor

Re: Apple devices disconnects from guest network

HP got it wrong. The js in the link you provieded only checks for ipods, thus leaving out all the other iOS devices.

 

if (useragent.indexOf('iPod') > -1) { 

 

I wrote a quick fix and posted it here, give it a shot ... It works for our environment. 

 

http://pastebin.com/vJxPG9Bq

Faltherren
Visitor

Re: Apple devices disconnects from guest network

Hello! 

Thanks for your reply and sorry for my late reply. I am only at my customers office 1-2 days per week. As I wrote in my first post I also added other Apple devices such as iPhone and iPad. :-) They can reach and log in on the HTML-authentication site but suddenly disconnects after 1 minute or so. 

 

But I will compare your code to the one I have in my index.asp. Thanks!

Faltherren
Visitor

Re: Apple devices disconnects from guest network

Looks about right eh? Your script is identical to the one I use. :-)

 

</script>
<script type="text/javascript" language="JavaScript">
<!--
function showsessionpageifnotsubscribe()
{
var action = $F('access_type');
var showSessionPage = false;

if (typeof(action) == 'string') {
if ($F('access_type') != 'subscribe') {
showSessionPage = true;
}
} else {
showSessionPage = true;
}
// fix by Thoams Heuberger, 2013. Disables the Session Page popup on iOS devices
                                if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g))
                                        showSessionPage = false;

if (showSessionPage) {
showsessionpage('<% write(GetWebFullURL("http")); %>/session.asp');
}
}
//-->
</script>

lightxx1980
Occasional Advisor

Re: Apple devices disconnects from guest network

lol ... because I wrote it? anyways, glad I could help.