Welcome Guest, Not a member yet? Register   Sign In
Internet Explorer 7 + Ajax + Session Destroy = Broke?
#2

[eluser]Frank Berger[/eluser]
Frankly, you find me surprised that it works in all the other browsers... why don't you just do a link to http://mysite/logout or a [removed].href=http://mysite/logout ?

I imagine that you do checks via ajax if and how one needs to be logged out, in that case i would do it like this:

Code:
$.get('/checkmylogout',function (data) { //this returns json in my case

  if (data.logout) {
    location.href='http://mysite/logout';
} else {
   // whatever u wanna do in the other case
}
});

I mean.. either the session is due for termination or not.. why leave the user on a basically still valid page, just to realize on the next click 'hey you been logged out' - i hate when that happens

cheers
Frank


Messages In This Thread
Internet Explorer 7 + Ajax + Session Destroy = Broke? - by El Forum - 05-21-2009, 08:33 AM
Internet Explorer 7 + Ajax + Session Destroy = Broke? - by El Forum - 05-21-2009, 04:37 PM
Internet Explorer 7 + Ajax + Session Destroy = Broke? - by El Forum - 05-22-2009, 08:20 AM
Internet Explorer 7 + Ajax + Session Destroy = Broke? - by El Forum - 05-22-2009, 08:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB