Welcome Guest, Not a member yet? Register   Sign In
Session ID not sticking in Safari
#1

[eluser]funkmyer[/eluser]
Hi all,

So i am watching my cookies in Safari's prefs pane (Security>Show Cookies). I have the session library autoloading from the main config file. Every page I hit, the ci_session cookie gets a new string instead of keeping the same session_id to be used over and over again until it expires and a new one is generated. Is it fair to assume that Safari is not "seeing" the existing cookie and thus creating a new one each page load? Has anyone run into this problem ? Everything works perfectly in Mozilla/FF.

Notable: I am creating and checking the sessions via AJAX calls.

Any help is greatly appreciated.
#2

[eluser]johnwbaxter[/eluser]
Have you tried it in opera? I seem to be having similar troubles and i'm not using javascript.
#3

[eluser]funkmyer[/eluser]
Ill check in Opera, just need to install it. Is this something new you think, e.g. have you had this problem before?
#4

[eluser]johnwbaxter[/eluser]
I haven't found out how to fix it yet!
#5

[eluser]Chris Newton[/eluser]
I gave up using CI's session library for this reason. Much as I loathe to abandon use of an on-board CI library, I've had nothing but trouble using it. I switched to PHP session, which can be used in addition to CI's native session library if you choose, rather than as a direct replacement like some of the other session libraries.
#6

[eluser]johnwbaxter[/eluser]
Trouble is i am using a different session library - obsession - i'm tempted to try CI's session library!
#7

[eluser]Chris Newton[/eluser]
Hah hah... Safari troubles all around. To be fair, I've mostly run into problems with Safari keeping session ids locally (localhost)
#8

[eluser]mmorgensen[/eluser]
Hi,

I just had the same problem, got the answer in another thread; thought I would update this one too. Turns out Safari did not like the date/time set on my server, thus it would not keep the session cookie set.

On my ubuntu server I ran
Code:
ntpdate ntp.ubuntu.com

fixed the problem immediately!

mm
#9

[eluser]evanwalsh[/eluser]
I have no problems keeping a localhost session. However, I have an alias for my localhost (dev.evanwalsh.net), so that may have something to do with it.
#10

[eluser]basty_dread[/eluser]
i am having problem too with ci_session library.. before it is working on safari and also in opera.. then i upgraded my browsers to the latest version.. and now i could not log in to my applications because it redirects when ever i log in.. what do you think is the problem with ci_session library? or is it with the browser? it works good in FF.




Theme © iAndrew 2016 - Forum software by © MyBB