CodeIgniter Forums
hosting server session problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: hosting server session problem (/thread-17072.html)

Pages: 1 2

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

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;


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