![]() |
Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) (/showthread.php?tid=49616) |
Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) - El Forum - 02-27-2012 [eluser]Unknown[/eluser] Hi, I'm having following problem with using CI Session while in Internet Explorer 9 (didn't test it with another versions For some reason CI Session->set_userdata () behaves like a flashdata in IE - data clears after each refresh, new page etc. Everything works just fine in all other browsers! My Session and Cookie related config: Code: $config['sess_cookie_name'] = 'cisession'; Code: $config['cookie_prefix'] = ""; Any suggestion , tip will be ver appreciated. I've looked through several CI Forum topics but nothing helped so far. Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) - El Forum - 02-27-2012 [eluser]Chathuranga Tennakoon[/eluser] i have also faced to this bug with the Codeigniter older release. as far as i remember, i changed session_expiration time as follows. Code: $config['sess_expiration'] = 0; then it will not expire the session. even if this work, it is not a good solution, ![]() Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) - El Forum - 02-27-2012 [eluser]InsiteFX[/eluser] IE has lot's of user_agents that are over 255 characters long! Code: $config['sess_match_useragent'] = FALSE; Also make sure you are using the correct ci_session table in the database! Code Igniter Sessions and Internet Explorer ( Session clears on refresh ) - El Forum - 02-28-2012 [eluser]Unknown[/eluser] [quote author="InsiteFX" date="1330349680"] Code: $config['sess_match_useragent'] = FALSE; Thank you ! That helped ![]() I am not using db to store sessions, still I'll keep that in mind Actually I was thinking about sdetting that param to false - just for a test - but than I said to myself - "Useragent?, nah, can't be the case" ... Hate when it happens ![]() |