Indefinite session?

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

    Indefinite session?

    What is the easiest way to set up a session that only expires when the
    browser is closed?
  • flowover

    #2
    Re: Indefinite session?

    On Feb 10, 12:40 am, turnitup <same@samewrote :
    What is the easiest way to set up a session that only expires when the
    browser is closed?
    session_set_coo kie_params(0);
    Make sure to do this before session_start() is called. PHP defaults
    to this session cookie lifetime unless it is changed in the ini file.

    Comment

    • Hugh Oxford

      #3
      Re: Indefinite session?

      flowover wrote:
      On Feb 10, 12:40 am, turnitup <same@samewrote :
      >What is the easiest way to set up a session that only expires when the
      >browser is closed?
      >
      session_set_coo kie_params(0);
      Make sure to do this before session_start() is called. PHP defaults
      to this session cookie lifetime unless it is changed in the ini file.
      Thanks. Will give it a shot.

      Comment

      Working...