![]() |
Session problem when using jQuery.load() function - 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: Session problem when using jQuery.load() function (/showthread.php?tid=26533) |
Session problem when using jQuery.load() function - El Forum - 01-16-2010 [eluser]FordEscort[/eluser] Hi all. I'm using IE 8.0.6001.18702 and Firefox 3.5.3. I have a problem with CI's session when dealing with jQuery.load method. In Firefox everything is OK but in IE it seems that the session is not recognized. Here's a simplified sample code of my application : controllers/test_session.php : Code: <?php views/test_session.php : Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Normally when I click on $('#test_link') the value displayed should increment but in IE it doesn't work. Can you help me please. Thanks. Session problem when using jQuery.load() function - El Forum - 01-16-2010 [eluser]pistolPete[/eluser] How do you know about a session failure in IE? Did you try using a network sniffer (e.g. Wireshark) to see the request and the response? Session problem when using jQuery.load() function - El Forum - 01-18-2010 [eluser]FordEscort[/eluser] I've not yet tried sniffing but I tried the same application without framework and it worked like a charm. Session problem when using jQuery.load() function - El Forum - 01-18-2010 [eluser]FordEscort[/eluser] I noticed that when I change something in the testLoad() function it's not applied even if I refresh the page in IE. Perhaps IE put the data in cache when it's loaded by jQuery.load() ? It's strange when I don't use the framework the changes are applied. Help please :-S Session problem when using jQuery.load() function - El Forum - 01-18-2010 [eluser]FordEscort[/eluser] It's OK. I found the solution in the jQuery doc : Quote:Note: Keep in mind that Internet Explorer caches the loaded file, so you should pass some extra random GET parameter to prevent caching if you plan to call this function more than once |