CodeIgniter Forums
hosting server session problem - 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: hosting server session problem (/showthread.php?tid=17072)

Pages: 1 2


hosting server session problem - El Forum - 06-03-2011

[eluser]cogitsolutions[/eluser]
was facing same problem of session with IE 8. Many threads suggested for underscore, timezone difference. Real problem is timezone difference. CI creates cookie with server time and IE checks expiry related to client timezone. And here issues comes. You can not change time zone of online server to match clients from all over world. The better solution is change cookie / session expiry time. By default it is two hours. Change it to 24 hours and problem will be solved.

In config.php file change value of following variable

from two hours

$config['sess_expiration'] = 7200;

to 24 hours

$config['sess_expiration'] = 3600 * 24;

check http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/


hosting server session problem - El Forum - 03-08-2012

[eluser]Reneesh T K[/eluser]
I have a shopping cart site with codeigniter frame work and it was showing session out when adding morethan hundreds of products.

I have solved the issue by changing the database field type of user_data in session table.

Please check more

http://myphplibrary.blogspot.in/2012/03/codeigniter-session-issue-fixation.html