php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "secure cookie"

Is it advisable to rely on HTTP_REFERER for security measures in PHP, or are there more secure alternatives like session or cookie-based authentication?

It is not advisable to rely solely on HTTP_REFERER for security measures in PHP as it can be easily spoofed or manipulated. More secure alternatives l...

How does setting a cookie in PHP work and what are potential issues that can arise with cookie handling?

Setting a cookie in PHP involves using the setcookie() function with appropriate parameters such as name, value, expiration time, path, domain, etc. P...

How can the session cookie be configured using session_set_cookie_params() in PHP?

To configure the session cookie using session_set_cookie_params() in PHP, you can set parameters such as the cookie lifetime, path, domain, secure, an...

What is the correct way to set a cookie for a session ID in PHP?

When setting a cookie for a session ID in PHP, it is important to make sure that the cookie is secure and only accessible over HTTPS. This helps preve...

What is the correct way to set a cookie in PHP?

To set a cookie in PHP, you need to use the `setcookie()` function. This function takes multiple parameters such as the cookie name, value, expiration...

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.