jorjap
jorjap

Reputation: 358

Can cookies sent by PHP be disabled from the server?

Can cookies sent by PHP be disabled from server?

Upvotes: 0

Views: 1101

Answers (1)

Michiel Pater
Michiel Pater

Reputation: 23043

Yes, they can. You can do this using .htaccess by setting the following values:

Header unset Cookie
Header unset Set-Cookie

Please note that if the server has sent cookies to a browser in the past, then the browser might still be sending back cookies to the server.

Upvotes: 4

Related Questions