php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "expiration date"

Can setting the expiration date of a cookie to the past be the only way to delete it in PHP?

Setting the expiration date of a cookie to the past is one way to delete it in PHP, but it is not the only way. Another way is to unset the cookie usi...

What is the best way to determine the next Monday in PHP for setting a cookie expiration?

To determine the next Monday in PHP for setting a cookie expiration, you can use the `strtotime` function to calculate the timestamp for the next Mond...

How can browser settings affect the expiration time of a cookie set in PHP?

Browser settings can affect the expiration time of a cookie set in PHP because the browser may override the expiration time set by the server-side scr...

What best practices should be followed when using setcookie function in PHP to set cookie expiration dates?

When using the setcookie function in PHP to set cookie expiration dates, it is best practice to set the expiration date to a future timestamp rather t...

How can developers ensure that cookies are set correctly in PHP to avoid issues with expiration dates?

To ensure that cookies are set correctly in PHP and avoid issues with expiration dates, developers should make sure to set the expiration date of the...

Showing 16 to 20 of 8189 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1637 1638 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.