0

I wrote code in PHP and when I close the browser the session expires and I have to login every time I open the browser, I want to expire the session only when the user press logout button.

prashant
  • 97
  • 3
  • 10

1 Answers1

0

Increase your session.cookie_lifetime value in your php.ini configuration. This value represents the lifetime of your session cookie in seconds. By default it is 0, which destroys the cookie upon browser close.

Liftoff
  • 24,717
  • 13
  • 66
  • 119