Internet Explorer 7 + Ajax + Session Destroy = Broke? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Internet Explorer 7 + Ajax + Session Destroy = Broke? (/showthread.php?tid=18889) |
Internet Explorer 7 + Ajax + Session Destroy = Broke? - El Forum - 05-21-2009 [eluser]Steven_W[/eluser] I have a logout link that uses jquery to load the logout page with $.get. This works with firefox, ie8, and chrome. When I put ie8 in ie7 mode, the session isnt destroyed using $.get. However if I go to www.mysite.com/logout, the session is destroyed. Any help would be appreciated jquery Code: $.get('/logout'); logout.php controller Code: function index() config Code: $config['sess_cookie_name'] = 'ec_session'; Internet Explorer 7 + Ajax + Session Destroy = Broke? - El Forum - 05-21-2009 [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 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 Internet Explorer 7 + Ajax + Session Destroy = Broke? - El Forum - 05-22-2009 [eluser]Steven_W[/eluser] They wanted the user to be able to login and log out of their account without leaving the page, flash video is a big part of the site. Adding a redirect to the logout controller seems to have gotten it working in ie7 mode. Internet Explorer 7 + Ajax + Session Destroy = Broke? - El Forum - 05-22-2009 [eluser]Tom Schlick[/eluser] [quote author="Frank Berger" date="1242963426"]Frankly, you find me surprised that it works in all the other browsers... [/quote] really? your surprised that IE is the devil and loves to throw problems at web developers that no other browser does? haha i fucking HATE IE ... DIE IE DIE!!!! |