Checking if user has changed cookie value, manually

前端 未结 4 1346
礼貌的吻别
礼貌的吻别 2021-02-06 02:52

I am busy with a login system for my project.

Just for an extra step to the security.. How can I check/detect if a user has manually changed a cookie value?

Is t

4条回答
  •  一向
    一向 (楼主)
    2021-02-06 03:32

    If you have to handle such sensitive information, I would suggest you not store it in user cookies. Instead use sessions to store such values as the user will not be able to tamper with such values.

提交回复
热议问题