set session cookie expiration date

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

    set session cookie expiration date

    Hello,

    I use PHP session cookie to store an id number.

    I know how to set a cookie expiration date using the setcookie function, but
    how to set an expiration date when the cookie is created by the
    session_start function ?

    I know the cookie expires after the session ends, but when I look at my HTTP
    headers, the cookie's expiration date created by the session is set to 19
    Nov 1981. Something must be wrong.

    Thanks for your help,

    Christophe

  • Andy Hassall

    #2
    Re: set session cookie expiration date

    On Tue, 21 Dec 2004 16:07:21 +0100, Christophe Lance
    <christophe.lan ce@jcp-marketing-event.ch> wrote:
    [color=blue]
    >I use PHP session cookie to store an id number.
    >
    >I know how to set a cookie expiration date using the setcookie function, but
    >how to set an expiration date when the cookie is created by the
    >session_star t function ?[/color]



    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Christophe Lance

      #3
      Re : set session cookie expiration date

      [color=blue][color=green]
      >>
      >> I know how to set a cookie expiration date using the setcookie function, but
      >> how to set an expiration date when the cookie is created by the
      >> session_start function ?[/color]
      >
      > http://uk.php.net/manual/en/function...kie-params.php[/color]


      Thanks Andy for your info.


      Christophe

      Comment

      Working...