Keep session alive till browser closed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tokcy
    New Member
    • Sep 2008
    • 45

    Keep session alive till browser closed

    Hi All,

    I want to kip session alive until i closed the browser.
    Default session time 30 minutes and if we are using session.gc_maxl ifetime then i have to give specific time like 8 hrs or something like this. And i want to keep alive for all time till browser closed.


    Thanks in Advance.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    simply set the discard flag to the session cookie, resp. session.cookie_ lifetime = 0 (default)

    Comment

    • jpr0325
      New Member
      • Mar 2010
      • 4

      #3
      set session lifetime variable in PHP.INI to 0 (means till browser close)

      Comment

      Working...