php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "session lifetime"

How can the session lifetime be accurately determined by checking the response headers?

To accurately determine the session lifetime by checking the response headers, you can look for the "Set-Cookie" header that is returned when a sessio...

How can the session lifetime be effectively managed in PHP to ensure sessions are maintained for multiple days?

To manage session lifetime in PHP for multiple days, you can set the session cookie lifetime to a longer duration using the session_set_cookie_params(...

Why is the session being deleted after approximately 30 minutes despite setting the session lifetime to 8 hours?

The issue may be caused by the server's session garbage collection settings, which could be configured to delete inactive sessions after a certain per...

How can the lifetime of session IDs be defined in PHP?

To define the lifetime of session IDs in PHP, you can use the session.gc_maxlifetime directive in the php.ini file or set it dynamically using the ini...

Can cookies set during a PHP session be configured to persist beyond the session's lifetime?

Cookies set during a PHP session typically expire when the session ends. To make cookies persist beyond the session's lifetime, you can set an expirat...

Showing 6 to 10 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.