Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how to use one session token to reference properties stored in a server side cache?.
for ASP.Net Web application.

This is for to prevent URL manipulation(manipulation of parameters exchanged between client and server such as user credentials and permissions),

I'm new to this section please help me in this.

What I have tried:

already AES algorithm encryption is happening
ex-
Response.Redirect("Orderpage.aspx?rno=" + objsecurity.Encrypt(trans_no));
Posted
Comments
F-ES Sitecore 24-Oct-18 8:18am    
If you are saving things in the Session to stop url tampering you might as well just hold your trans_no in the Session and only do a redirect to Orderpage.aspx. It looks like your actual solution is to implement authentication of some sort to control who can see what.
Richard Deeming 25-Oct-18 13:54pm    
There is absolutely no way that credentials and permissions should ever be passed in the URL!

The credentials should only be passed once, when the user logs in, using a POST request to an HTTPS endpoint. The server should validate the credentials, and issue an encrypted cookie which can be used to authenticate the user and determine their permissions entirely on the server.

ASP.NET Identity[^] will already do all of this for you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900