in reply to Two CGI.pm problems

The IE behavior should be considered a feature. If the user specifically asks not to be remembered, then the cookie should be session-only.

----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

Replies are listed 'Best First'.
Re^2: Two CGI.pm problems
by Cody Pendant (Prior) on Jun 08, 2004 at 08:55 UTC

    >The IE behavior should be considered a feature.

    I believe this answer stems from a complete misunderstanding of the original poster's question.

    Doesn't "session-only" mean "until the browser is quit?"

    The cookie is not saved until the browser is quit, according to the OP's account. It's lost, in IE, right away, so, not a feature.

    I know there are bugs in some versions of IE which require the path to be set, but I don't think that's common-- Mac version 5 only?

    Short answer: show us your code, and check out the exact details of the cookie using a browser which allows you do do that.

    Does your "log-in successful" page actually check that a cookie has been set? Or does it just assume that it's been set? What are the conditions you check in order to return "log-in successful"?



    ($_='kkvvttuubbooppuuiiffssqqffssmmiibbddllffss')
    =~y~b-v~a-z~s; print
      First I should say that when I changed the cookie expiration time from 30 minuts to 1 day, it was created.
      And yes, I assumed the cookie was created. I'll fix that and see what happenes, but I guess that won't be neccessary (For the sake of the matter, not the sake of the program), 'cause I use Mozilla's developer plugin which displays information on all cookies the page uses. When trying to login with IE (Without the 'remember me'), it does not find a cookie, so it is definitely not created.
      Anyway, it's pretty interesting that when giving an expiration time of a number of days the cookie is created, but when giving an expiration time of minuts or hours it's not.

      -------------------------
      Live fat, die young
Re^2: Two CGI.pm problems
by ido50 (Scribe) on Jun 07, 2004 at 21:14 UTC
    But what can I do? IE users cannot access the program. They login, get the message that the login was successfull, and when trying to access any page of the program, they are requested to login again, meaning the cookie was deleted.
    If I can't fix it, that's a bit of a problem.

    -------------------------
    Live fat, die young

      I suspect the IE settings need to be ajusted. I don't think there is anything odd about how CGI.pm generates cookies, so there probably isn't anything to be done on the server side.

      ----
      send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.

        Okay. I'll check it out with other IE users. Thanks.

        -------------------------
        Live fat, die young
        I've checked with other IE users and the same problem happens to them too.

        -------------------------
        Live fat, die young