Chocolate Software Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Error when logging out of FSHost back end  (Read 392 times)

Air SeaTac

  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
    • Air SeaTac Virtual
Error when logging out of FSHost back end
« on: January 21, 2012, 06:06:20 AM »

Whenever I try & log out of the back end of the FSHost web page, I get the following -

No data received
Unable to load the web page because the server sent no data.

Browser is Google Chrome 17.0.963.38 beta-m

Anyone any clues?
Logged

Russell Gilbert

  • Administrator
  • Guru
  • *****
  • Offline Offline
  • Posts: 1310
    • FSHost
Re: Error when logging out of FSHost back end
« Reply #1 on: May 15, 2012, 12:44:41 PM »

Hi Danny,

Yeah, I see that it's not working correctly in Chrome, but it does still work in Firefox, and partially in Safari (with a warning about Phishing that can be ignored).

The type of authentication I'm using for the FSHost admin pages is the kind where the browser prompts for the username and password in a popup dialog -- as opposed to a login form in a web page (think Gmail, Yahoo mail, etc.) There's really no good way to log out of that type of authentication, but I'm using an old trick where the logout link includes a fake username and password, and a weird side effect is that you get logged out. The trick worked in Netscape but not IE, which is why you don't see the logout link in IE at all -- I hide it when that browser is detected. Apparently it doesn't work now in Chrome either.

The only thing I can really suggest is that you just hide the logout link in Chrome also, since it doesn't support it. Then it'll work like IE, and you'll have to just close the browser to really log out. To hide the link, open up "RemoteAccessOwnerNav.html" in Notepad, and change this line:

Code: [Select]
if(navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5)
to this:

Code: [Select]
if(navigator.appName == "Netscape" && navigator.userAgent.indexOf("Chrome") == -1 && parseInt(navigator.appVersion) >= 5)
Let me know if you have any problems with it.

Thanks,
Russell
Logged

Air SeaTac

  • Full Member
  • ***
  • Offline Offline
  • Posts: 85
    • Air SeaTac Virtual
Re: Error when logging out of FSHost back end
« Reply #2 on: May 15, 2012, 02:26:58 PM »

Thanks for the reply Russell, but due to other problems with Chrome I moved back to Firefox a while back
Logged
Pages: [1]   Go Up