Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter Session Problems Thread
#26

[eluser]WanWizard[/eluser]
The timestamp of a cookie in the headers is specified in GMT, which browsers convert to local time before verification.

The problem here is that CI allows you to define the time as either server- or gmt time in your configuration (which is ok), but the session library uses this value to determine the value of now (not ok!). So if you have set your config to local time, and the difference between your local time and GMT is 6 hours, your session cookie timestamp will be 6 hours off.

This needs to be fixed in the session library (always use GMT for the cookie expiry timestamp). This is a know issue for ages, but apparently nobody has fixed it yet, since it's still present in reactor.


Messages In This Thread
CodeIgniter Session Problems Thread - by El Forum - 11-19-2009, 01:05 PM
CodeIgniter Session Problems Thread - by El Forum - 11-19-2009, 02:49 PM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 07:59 AM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 08:11 AM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 10:51 AM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 12:48 PM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 01:27 PM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 01:45 PM
CodeIgniter Session Problems Thread - by El Forum - 11-20-2009, 05:25 PM
CodeIgniter Session Problems Thread - by El Forum - 11-21-2009, 11:49 AM
CodeIgniter Session Problems Thread - by El Forum - 12-03-2009, 01:45 PM
CodeIgniter Session Problems Thread - by El Forum - 12-03-2009, 02:29 PM
CodeIgniter Session Problems Thread - by El Forum - 12-05-2009, 04:25 AM
CodeIgniter Session Problems Thread - by El Forum - 05-16-2010, 01:03 AM
CodeIgniter Session Problems Thread - by El Forum - 05-16-2010, 03:17 AM
CodeIgniter Session Problems Thread - by El Forum - 08-23-2010, 10:32 PM
CodeIgniter Session Problems Thread - by El Forum - 08-24-2010, 03:32 AM
CodeIgniter Session Problems Thread - by El Forum - 08-24-2010, 08:43 AM
CodeIgniter Session Problems Thread - by El Forum - 09-16-2010, 01:59 AM
CodeIgniter Session Problems Thread - by El Forum - 09-16-2010, 08:47 AM
CodeIgniter Session Problems Thread - by El Forum - 09-17-2010, 07:45 PM
CodeIgniter Session Problems Thread - by El Forum - 09-18-2010, 03:44 AM
CodeIgniter Session Problems Thread - by El Forum - 09-18-2010, 07:02 AM
CodeIgniter Session Problems Thread - by El Forum - 06-03-2011, 08:36 AM
CodeIgniter Session Problems Thread - by El Forum - 06-03-2011, 08:44 AM
CodeIgniter Session Problems Thread - by El Forum - 06-03-2011, 08:53 AM
CodeIgniter Session Problems Thread - by El Forum - 06-06-2011, 12:34 AM
CodeIgniter Session Problems Thread - by El Forum - 06-06-2011, 09:19 AM
CodeIgniter Session Problems Thread - by El Forum - 03-07-2012, 10:26 AM
CodeIgniter Session Problems Thread - by El Forum - 03-07-2012, 10:51 AM
CodeIgniter Session Problems Thread - by El Forum - 03-07-2012, 11:10 AM
CodeIgniter Session Problems Thread - by El Forum - 05-21-2013, 03:09 AM
CodeIgniter Session Problems Thread - by El Forum - 05-21-2013, 03:12 AM
CodeIgniter Session Problems Thread - by El Forum - 06-28-2013, 02:56 PM
CodeIgniter Session Problems Thread - by El Forum - 08-21-2013, 02:58 AM
CodeIgniter Session Problems Thread - by El Forum - 08-22-2013, 12:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB