php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "cookie security"

What is the common method to delete a cookie in PHP?

To delete a cookie in PHP, you need to set the cookie with an expiration time in the past. This will prompt the browser to remove the cookie from its...

Is it necessary or recommended to include a hash when setting a session cookie in PHP?

It is recommended to include a hash when setting a session cookie in PHP to enhance security and prevent cookie tampering. By including a hash, you ca...

What is the purpose of the 'auto_login' cookie in the PHP code snippet?

The 'auto_login' cookie in the PHP code snippet is likely used to automatically log in a user when they visit a website, without requiring them to man...

How can you retrieve a cookie value in PHP?

To retrieve a cookie value in PHP, you can use the $_COOKIE superglobal array. This array contains all the cookies that were sent in the HTTP request....

What is the correct syntax for checking a cookie value in PHP?

To check a cookie value in PHP, you need to use the isset() function to determine if the cookie is set, and then access the cookie value using the $_C...

Showing 56 to 60 of 10000 results

‹ 1 2 ... 9 10 11 12 13 14 15 ... 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.