session cookie persisting

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

    session cookie persisting

    I'm trying to recreate my RFDMaker in PHP.

    I've decided to do it in a series of steps, using sessions. With
    cookies turned off it works fine (I've only done the first three steps).
    The session ID is passed in the url so the user can go forwards and
    backwards.

    However, with cookies on, the session persists even if I close the
    browser. I thought that, unless specified otherwise, cookies only
    persisted while the browser was open.

    Am I missing something or is it my machine/setup? Could someone test it
    for me?

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/
  • Andy Hassall

    #2
    Re: session cookie persisting

    On Sun, 21 Dec 2003 11:16:00 +0000, Geoff Berrow <blthecat@ckdog .co.uk> wrote:
    [color=blue]
    >I'm trying to recreate my RFDMaker in PHP.
    >
    >I've decided to do it in a series of steps, using sessions. With
    >cookies turned off it works fine (I've only done the first three steps).
    >The session ID is passed in the url so the user can go forwards and
    >backwards.
    >
    >However, with cookies on, the session persists even if I close the
    >browser. I thought that, unless specified otherwise, cookies only
    >persisted while the browser was open.
    >
    >Am I missing something or is it my machine/setup? Could someone test it
    >for me?
    >http://www.ckdog.co.uk/php/rfdsesh/rfdmaker.php[/color]

    I get a new session after closing and reopening in IE6, but Mozilla 1.4 claims
    to have received a 7-day permaenent cookie instead of a browser session cookie
    and so continues the session.

    What values do you have in php.ini for the session options?

    --
    Andy Hassall (andy@andyh.co. uk) icq(5747695) (http://www.andyh.co.uk)
    Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)

    Comment

    • Geoff Berrow

      #3
      Re: session cookie persisting

      I noticed that Message-ID: <o6ibuvo6k7i0i6 83oo32ct153o4r6 2q0r2@4ax.com>
      from Andy Hassall contained the following:
      [color=blue][color=green]
      >>Am I missing something or is it my machine/setup? Could someone test it
      >>for me?
      >>http://www.ckdog.co.uk/php/rfdsesh/rfdmaker.php[/color]
      >
      > I get a new session after closing and reopening in IE6, but Mozilla 1.4 claims
      >to have received a 7-day permaenent cookie instead of a browser session cookie
      >and so continues the session.[/color]
      Hmm, I have IE6 but it persists for me[color=blue]
      >
      > What values do you have in php.ini for the session options?[/color]

      This bit?
      session.cache_e xpire 180 180

      Is that minutes? seconds?
      You can see the full thing here:


      I've added a reset link that calls session_unset and session_destroy
      that seems to do the trick but I'd still like to know why the session
      persists.
      --
      Geoff Berrow (put thecat out to email)
      It's only Usenet, no one dies.
      My opinions, not the committee's, mine.
      Simple RFDs http://www.ckdog.co.uk/rfdmaker/

      Comment

      Working...