ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Session ID not sticking in Safari

May 21, 2008 7:00am

Subscribe [6]
  • #1 / May 21, 2008 7:00am

    funkmyer

    10 posts

    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 / May 21, 2008 7:54am

    johnwbaxter

    651 posts

    Have you tried it in opera? I seem to be having similar troubles and i’m not using javascript.

  • #3 / May 21, 2008 3:26pm

    funkmyer

    10 posts

    Ill check in Opera, just need to install it. Is this something new you think, e.g. have you had this problem before?

  • #4 / May 21, 2008 4:39pm

    johnwbaxter

    651 posts

    I haven’t found out how to fix it yet!

  • #5 / May 21, 2008 5:13pm

    Chris Newton

    440 posts

    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 / May 21, 2008 5:22pm

    johnwbaxter

    651 posts

    Trouble is i am using a different session library - obsession - i’m tempted to try CI’s session library!

  • #7 / May 21, 2008 6:55pm

    Chris Newton

    440 posts

    Hah hah… Safari troubles all around. To be fair, I’ve mostly run into problems with Safari keeping session ids locally (localhost)

  • #8 / Jun 11, 2008 10:37pm

    mmorgensen

    4 posts

    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

    ntpdate ntp.ubuntu.com

    fixed the problem immediately!

    mm

  • #9 / Jun 11, 2008 10:39pm

    evanwalsh

    22 posts

    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 / Jul 27, 2010 11:44pm

    basty_dread

    107 posts

    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.

  • #11 / Jul 28, 2010 5:03am

    WanWizard

    4475 posts

    Could easily be the hostname issue mentioned earlier. Newer browsers implement more security when it comes to cookies, so invalid cookies that use to be accepted may no longer be.

  • #12 / Jul 28, 2010 9:41am

    BrianL

    35 posts

    Remove underscore from session cookie name. Certain browsers like IE and Safari do not support underscore in cookie names.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases