Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan

    #1

    Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

    Rather than me explain the problem, read this exchange of emails between my
    web host and myself, then tell me what I can tell them!

    I had a problem with their admin site all day, and after me saying "can't
    log in", and them saying "nothing wrong", I sent the following:

    ------------------------------------------------------[color=blue]
    > Found it! Tried it with 3 browsers now (IE, Opera, Firefox), and the
    > result is that I've just discovered a problem with your site...
    > It sets a cookie, PHPSESSID, with a value. If I get timed out or log out,
    > I cannot log in again.
    > If I delete that cookie, I can.
    > Try this: login, log out, try and log in again - doesn't work.
    > Close window, try and log in again. - works.
    > In other words, no matter what browser, you cannot log into the site again
    > once logged out.[/color]
    ------------------------------------------------------

    To which they replied

    ------------------------------------------------------[color=blue]
    > Hi
    > We already know that the Members Area works in this way.
    >
    > As you say, we are using a PHP Session ID and this is the way they work.
    >
    > Nobody else has reported that this is a problem for them.
    >
    > I guess in due course, it may be something that PHP themselves might want
    > to
    > look into.[/color]
    ------------------------------------------------------

    Now if that isn't passing the buck, I don't know what is!!


  • Oli Filth

    #2
    Re: Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

    Jonathan wrote:[color=blue]
    > Rather than me explain the problem, read this exchange of emails[/color]
    between my[color=blue]
    > web host and myself, then tell me what I can tell them!
    >
    > I had a problem with their admin site all day, and after me saying[/color]
    "can't[color=blue]
    > log in", and them saying "nothing wrong", I sent the following:
    >
    > ------------------------------------------------------[color=green]
    > > Found it! Tried it with 3 browsers now (IE, Opera, Firefox), and[/color][/color]
    the[color=blue][color=green]
    > > result is that I've just discovered a problem with your site...
    > > It sets a cookie, PHPSESSID, with a value. If I get timed out or[/color][/color]
    log out,[color=blue][color=green]
    > > I cannot log in again.
    > > If I delete that cookie, I can.
    > > Try this: login, log out, try and log in again - doesn't work.
    > > Close window, try and log in again. - works.
    > > In other words, no matter what browser, you cannot log into the[/color][/color]
    site again[color=blue][color=green]
    > > once logged out.[/color]
    > ------------------------------------------------------
    >
    > To which they replied
    >
    > ------------------------------------------------------[color=green]
    > > Hi
    > > We already know that the Members Area works in this way.
    > >
    > > As you say, we are using a PHP Session ID and this is the way they[/color][/color]
    work.[color=blue][color=green]
    > >
    > > Nobody else has reported that this is a problem for them.
    > >
    > > I guess in due course, it may be something that PHP themselves[/color][/color]
    might want[color=blue][color=green]
    > > to
    > > look into.[/color]
    > ------------------------------------------------------
    >
    > Now if that isn't passing the buck, I don't know what is!![/color]

    Tell them that they are unarguably talking nonsense. It is perfectly
    possible (and normal) to design a site that one can log out from and
    into at will without having to restart one's browser. This includes
    time-out occurrences.

    However, it *is* normal behaviour for PHP session cookies to remain on
    your computer until you close the browser. But this should not affect
    things.

    Unless something is wrong with your browser, then it they who are at
    fault. If they don't believe this, then try the demo I've made at
    http://olifilth.co.uk/01.php (see the script at
    http://olifilth.co.uk/01_script.php).

    Do you have a link that we could see this behaviour at, by any chance?

    --
    Oli

    Comment

    • Jordi

      #3
      Re: Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

      What is their problem?

      Why can't you log in if you have a cookie on your computer?

      Even though I don't see why you aren't allowed to have that cookie,
      that wouldn't have to be a problem because they could destroy that
      cookie when you log out and it should automatically be destroyed when
      you time out...

      Comment

      • Oli Filth

        #4
        Re: Can't relogin to site - apparently, it's PHP's fault! What do I tell them?

        Jordi wrote:[color=blue]
        > What is their problem?
        >
        > Why can't you log in if you have a cookie on your computer?
        >
        > Even though I don't see why you aren't allowed to have that cookie,
        > that wouldn't have to be a problem because they could destroy that
        > cookie when you log out[/color]

        They could do, but it could still work even if they didn't (see the
        example in my post above).
        [color=blue]
        > and it should automatically be destroyed when you time out...[/color]

        No, it shouldn't. The record of the session will be destroyed at the
        *server*, but session cookies on the *browser* are generally set to
        expire when the browser is closed.

        --
        Oli

        Comment

        Working...