Skip to main content
February 25, 2009
Question

Cookies and Firefox issue

  • February 25, 2009
  • 4 replies
  • 423 views
I am having an issue with my site (I did not develop it, but I am versed in CF enough to understand any solutions you might have)....
Here is the problem...

First, this is only an issue in Firefox. IE, Safari etc... etc.... do not have this problem.

When you attempt to login, the page shows a message "Logging you in..." it then appears to be redirecting (as it should) to the requested page after successful login. But, it just flickers and then nothing. You are not logged in, no errors either from CF or from the code. Meaning there is nothing displayed to the user. So after a few tries users are giving up and leaving the site. What I have found is that if you clear the cookies then you can login and all is well.

Upon further investigation, I logged into the admin side of the site, chose a user at random who had not logged in in more than a week. I tried to login to the site with his username and password, I could not (user and pwd are correct). After I could not login with his credentials, I tried my own and they too did not work although they did just prior to logging in with his. I cleared the cookies, and then it worked. (mine and his credentials).

I also ttried, deleting just the cookies for my site and that doesn't work. It is only when you delete ALL cookies via the Clear Private Data, uncheck everything except cookies method that it works. So I'm stumped. I don't know if it is firefox, or my code, or the server, or IIS or what. Any clues that you folks can shed would be great. If anyone else is experiencing this sort of behavior please tell me what you have done. Again, I did not develop the site so technical details are a bit sketchy and I am trying to help the developer track this down.

Essentially the site is developed in CF version 8, the login logic is CF/AJAX with javascript form field validation on the client. The webserver is IIS 6, the server itself is patched, the backend is SQL 2005 SP3 and again, this works flawlessly in other browsers.

I appreciate any assistance.
    This topic has been closed for replies.

    4 replies

    Inspiring
    February 27, 2009
    you said nothing about how your login framework is designed.
    are you using cflogin?
    did you make your own login framework based on session vars/whatever?
    are you using regular cf sessions or j2ee sessions? (you should do the
    latter, imho).

    let's start with that. post your code that performs login and the code
    that checks for login state. post you application settings as well.

    FF (as well as other browsers) has a feature to re-open previous tabs on
    start-up. this feature makes FF aggressively cache pretty much
    everything it can get its hands on, and never release it unless the user
    tells FF to clear out private data.
    your application needs to be designed with this and similar features in
    mind.

    post relevant code for starters.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    February 28, 2009
    Well since I did not code it, I am not sure which part I should post, but here goes.... This is the page which shows the login form.... below that is the function that is called that performs the login. If you need something else, let me know.

    You should also know, my developer got back to me and said that they cannot see anything in the code that would cause such a problem. They say they will keep looking further but maybe it is a firefox bug. I doubt that. I am more inclined to think it could be a setting in CF or IIS or the code.

    February 25, 2009
    Well firebug didn't tell me much... although I admit I am not sure what I am looking for nor if I was using it right...

    But, i have found something else interesting.

    I do not have to clear the cookies in firefox to make login work. If I restart the coldfusion service, login works.

    Does this help anyone to out there to think about what could be going on?
    February 25, 2009
    :::slight update:::

    my developer called me this morning and said that he did not find any problems in the code (likely story I thought since he wrote it) but that he would continue checking.

    So this begs the question, if it is not the code, then what else could be causing the problem of needing to delete cookies in order to login? Please anyone, chime in even if you don't know the answer, but maybe can point me in the right direction.
    Inspiring
    February 25, 2009
    Have you tried Firebug to see if that gives you any clues as to what the AJAX is up to?
    February 25, 2009
    quote:

    Originally posted by: mark_la
    Have you tried Firebug to see if that gives you any clues as to what the AJAX is up to?


    No, but I will do so now. If I see anything that catches my attention i will definitely report back here and also clue my developer in.