php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "session time"

How can session data be stored for a longer period of time in PHP?

By default, PHP session data is stored on the server and lasts only until the browser is closed or the session expires. To store session data for a lo...

Is it recommended to store the start time of a session and check it on each page load for better session management?

Storing the start time of a session and checking it on each page load can help improve session management by allowing you to set a timeout for the ses...

How can the elapsed time between two requests be calculated in PHP to determine session activity?

To calculate the elapsed time between two requests in PHP to determine session activity, you can store the timestamp of the last request in the sessio...

What are the best practices for storing user login time in a PHP session for a point system?

Storing user login time in a PHP session for a point system can help track when the user last logged in and award points accordingly. To do this, you...

What are the recommended time functions and formats for managing session timeouts in PHP?

Session timeouts in PHP can be managed by setting the session.gc_maxlifetime directive in the php.ini file to the desired timeout value in seconds. Ad...

Showing 16 to 20 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.