Click here to Skip to main content
15,887,979 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
After login with username and password in simple way we can have default URL.
Using this URL any one can login and access the profile so how to make secure login.
I have search for QueryString but I found it is not much secure for all the time.
If only QueryString is the only way for encryption then how to use it in effective way?

As we can do login using session variable by removing cookies from the browser.
How to use Base64 method or any other useful encryption method in C# for security of the profile. So if we copy and paste the URL in any browser user's profile should not be access at that time.
Thanks in advance.
Posted

1 solution

Dear Hitesh,

For the above problem you need to have the functionality of URL Rewriting that will definitely help you out.

these links will help you out:-

URL Rewriting with ASP.NET[^]

http://www.asp.net/web-forms/tutorials/security/introduction/security-basics-and-asp-net-support-vb[^]

http://www.asp.net/web-forms/tutorials/security/introduction/an-overview-of-forms-authentication-vb[^]

Thanks

Varun Sareen
 
Share this answer
 
v2
Comments
Ankur\m/ 6-Jan-12 7:42am    
Edited to make show the links as links (they were text before).
hiteshprajpati 10-Jan-12 5:18am    
Respected Sir,
Thank you for your reply.
Your given links are good to understand. But I feel difficult to implement in C#.
If you have some other way that easy to implement with Asp.net C# then please reply me.
Varun Sareen 17-Feb-12 11:31am    
which version of ASP.Net you are using?
hiteshprajpati 21-Feb-12 11:49am    
I am using asp.net version 3.5
Varun Sareen 23-Feb-12 12:03pm    
Dear Friend url rewriting is the best way to hide the actual url from users. All over this being done. It has a very simpler version of doing it if you do in asp.net4.0.

First you need to know what url rewriting concept is then implement the same starting from a small demo example in asp.net

Please refer this link to understand it more:- http://forums.asp.net/t/1556761.aspx/1

you have to try it and then if you still face problem then we are here to help you out but try it atleast once. you will urself feel easy to implement this concept.

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