CodeIgniter Forums
[SOLVED] IE Sessions + Cart and time zone issues? - 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: [SOLVED] IE Sessions + Cart and time zone issues? (/showthread.php?tid=33048)



[SOLVED] IE Sessions + Cart and time zone issues? - El Forum - 08-13-2010

[eluser]Unknown[/eluser]
for the past few months I have been running a codeigniter shop with the cart addon for a client.

I've had numerous problems which we're on my behalf

1. characters in shopping cart ( not adding to cart ) *FIXED*

2. underscore in the session table Internet Explorer ( not adding to cart) *FIXED*

but now i'm getting something I have no idea how to approach... I've been getting emails from people in different time zones saying that they can't add anything to the cart... so I raised the time hour by hour on my computer with IE6 and sure enough at 4 hours it will stop adding.

I am currently using the default CI Sessions but i havent read anyone fixing this problem with any plugin. does anyone have an answer to this? I would just let it go but my client gets 15 to 25 emails a day from potential customers so I need to get this done.

Thanks


[SOLVED] IE Sessions + Cart and time zone issues? - El Forum - 08-13-2010

[eluser]Unknown[/eluser]
If anyone else has this problem native sessions seem to fix it all


[SOLVED] IE Sessions + Cart and time zone issues? - El Forum - 08-13-2010

[eluser]WanWizard[/eluser]
Look for my post regarding this subject in the bug section.

Issue is that the timeout of the session cookie is calculated as time() + expiration, which is local time of the server. Which is a problem if your user is in another timezone. I've posted a solution where the cookie is crafted using the users timezone (must be set properly).