开发者

How to encrypt some data and store in html markup?

开发者 https://www.devze.com 2023-02-02 14:49 出处:网络
I have 开发者_如何学Goan asp.net page i do authentication and authorization of a user and user can make several ajax requests from this page. What i want to ensure is that the request only from this p

I have 开发者_如何学Goan asp.net page i do authentication and authorization of a user and user can make several ajax requests from this page. What i want to ensure is that the request only from this page so i will store some data(or token)(possibly a function of userID + user IP address + current time) encrypted in the page aswell as in the session so the requests that come with this token will only get served. Does anybody have any idea of doing this? Help


You could store it in the ViewState. You will then need to send the value of the ViewState hidden field along with your AJAX request.

0

精彩评论

暂无评论...
验证码 换一张
取 消