1

LOGOUT only works on Internet Explorer(11) when the Internet Explorer Developer Toolbar is visible it working fine with chrome i tried all options from here but its not working is anything wrong in code ? I AM USING Ember here is code

logoutPage(){
      let parts = document.location.href.split('/');
      let logOutUrl='/abc/unsecured/j_spring_logout'
      window.location =logOutUrl;
}

am calling above function from

<a id="session_Logout" {{action "logoutPage"}} style="cursor: pointer;">{{toplevel.label}}</a>
SF..MJ
  • 862
  • 8
  • 19
  • Run your app in IE11 mode, you've set the document mode to IE9 or earlier. Or remove all references to `console` from the code. – Teemu Jan 05 '18 at 05:17
  • removed all references to console from the code but Ember uses console internally in js and app is runnig in Edge(default) its not showing IE11 option it shows 10,9,8 and Edge(default) – SF..MJ Jan 05 '18 at 05:30
  • Is that close to your real logout code? Only setting `window.location` to something and nothing else? (What's `parts` for, then?) If yes, can you set `window.location` to something else in another context? If no, can you pinpoint which statement exactly fails? – arne.b Jan 05 '18 at 12:33
  • am using `j_spring_security_logout` so using that url it passes to filter and filter invalid session by `session.invalidate()` it works fine with other browser issue for IE – SF..MJ Jan 05 '18 at 12:40
  • 1
    You may find these answers helpful: https://stackoverflow.com/questions/8245547/document-location-does-not-change-the-webpage-in-ie9 – Steve H. Jan 05 '18 at 22:04
  • @ Steve H. it is not working without opening developer option it works fine with developer option and it shows url in network while logout but after closing developer window not working – SF..MJ Jan 08 '18 at 05:05

1 Answers1

0

Hi we also facing the same issue. When we check it with developer tool the IE version become 5 instead of IE 11 so we just added the

<meta http-equiv="X-UA-Compatible" content="IE=11" />   

in the header section of sign out page. which force the page to use IE11 and its working fine.

DaFois
  • 2,197
  • 8
  • 26
  • 43