Checking if user has changed cookie value, manually

前端 未结 4 1341
礼貌的吻别
礼貌的吻别 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:47

    Why don't you encrypt the cookie value. That way it is tough for the user to actually change it correctly. Like the previous answer mentions, if it is really sensitive, cookie is not the place to store it but encryption gives you a little bit more protection.

提交回复
热议问题