Checking if user has changed cookie value, manually

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

    Add a second variable to your cookie, which is unique to the first value.

    On Page_Load compare the two values to the database.

    If they do not match a record, then delete the cookie.

提交回复
热议问题