For how long does a session variable persist by default in PHP?

  • Until the browser is closed
  • Until the server restarts
  • For 24 hours
  • Until the session ends
By default, session variables in PHP persist until the session ends. This typically happens when the user closes the browser or remains inactive for a set period, often 24 minutes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *