Delete PHP Cookie?

前端 未结 3 1285
醉梦人生
醉梦人生 2020-12-20 18:04

I currently have a cookie set as follows:

setcookie(\"username\",$username,time()+3600*24*5);

How would I go about clearing the value of th

3条回答
  •  梦毁少年i
    2020-12-20 18:42

    You really should not store your users password in a cookie, especially if you are not using HTTPS! The password will be sent in plaintext over the network for every requests! Also, never send back a user his password, this is nerver a good idea.

提交回复
热议问题