Welcome Guest, Not a member yet? Register   Sign In
Chrome session issue - won't set_userdata
#1

[eluser]davewilly[/eluser]
Hi guys, having a slight issue with a login system. It works fine on every browser I've tried except for chrome where the set_userdata isnt being stored.

Here's a dump of session data from Chrome, and also a comparison from firefox:

Chrome (userdata missing)
Code:
Array ( [session_id] => 1d339266237a75913a651d199905ace3 [ip_address] => 192.168.2.6 [user_agent] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) Ap [last_activity] => 1276440581 )

FireFox (userdata exists)
Code:
Array ( [session_id] => 22c8d5a0181c98386184a5b94308f386 [ip_address] => 192.168.2.6 [user_agent] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv [last_activity] => 1276439972 [userid] => 1 [username] => admin [type] => admin )

Thankyou,

David
#2

[eluser]pickupman[/eluser]
Have you tested while storing sessions in DB? It's more secure, plus it might resolve in session storage issues. Browsers only support so much data being stored (4kb), but right now you are under that limit obviously. I know with IE, sometimes it revolves around timezone issues. Say if IE doesn't respect a GMT offset of an hour, and your session length is 1 hour, the session won't set. This could a similar issue as well. Try extending your session length beyond your location and timezone setting for the server, or just really long just for the fun of it.
#3

[eluser]Razvan Juravle[/eluser]
hi, what version of CI do you use? i had used 1.7.2 and it works fine with both browsers...else.. i don't figure out what can it be Sad




Theme © iAndrew 2016 - Forum software by © MyBB