php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "secure cookie settings"

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

To set a cookie in PHP, you can use the `setcookie()` function. This function takes parameters for the cookie name, value, expiration time, path, doma...

How can you ensure that cookies in PHP are secure and not vulnerable to attacks?

To ensure that cookies in PHP are secure and not vulnerable to attacks, you should set the 'secure' and 'httponly' flags when creating the cookie. The...

What are the differences in cookie behavior between different browsers like Firefox and Internet Explorer?

Cookies behave differently in different browsers due to variations in how they handle cookie settings and restrictions. For example, Firefox may have...

How can a session be associated with a cookie in PHP?

To associate a session with a cookie in PHP, you need to set the session cookie parameters before starting the session. This can be done by using the...

How can session_set_cookie_params() be used to set the session cookie parameters in PHP?

To set the session cookie parameters in PHP, you can use the session_set_cookie_params() function. This function allows you to specify various paramet...

Showing 51 to 55 of 10000 results

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