Welcome Guest, Not a member yet? Register   Sign In
Sessions not working with time_reference set to gmt
#1

[eluser]Dan Horrigan[/eluser]
Anyone else have this issue? If I set this:
Code:
$config['time_reference'] = 'gmt'

Then my cookies seem to be expiring instantly. Any data I put in them is gone when I try to access them on the next page.

On an odd note, flashdata works perfectly fine.

Any help would be great.
#2

[eluser]TheFuzzy0ne[/eluser]
I'd recommend you clear all cache and cookies pertaining to your site, and try again.
#3

[eluser]Dan Horrigan[/eluser]
I have done this. It seems to be an issue with CI setting the expiration date of the cookie using gmt, but my pc is in GMT -4. But my thinking is that should make the cookie valid longer...not shorter. This has been verified as an issue on multiple computers.
#4

[eluser]Dam1an[/eluser]
Do they expire immediatly if you have the timezone of any other negative or is it just GMT?
#5

[eluser]TheFuzzy0ne[/eluser]
Have you set your system's timezone correctly? You can do this by double-clicking the time at the bottom right hand side of your screen, and then selecting the "Time Zone" tab.
#6

[eluser]Dan Horrigan[/eluser]
Thanks for your help guys, but I am going to simply set time_reference back to 'local' and then use local_to_gmt() when needed.




Theme © iAndrew 2016 - Forum software by © MyBB