Click here to Skip to main content
15,936,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I am beginner into MVC 4.0 and wanted to authenticate a user while accessing my web application on http. I am having an object with key values(username, permissions, token,secure key). I want to pass these information in top parent route so it can be accessable to every http post/get request to authenticate every request. But not using COOKIES.

Thank you !


1 solution

You should follow the built-in authentication concepts. This does not mean, that you can use only the built-in membership and role providers. As I see you will have to build your own custom providers at least that for membership.
Here are the general concepts of it:[^]
And here are two samples you could start from: Custom Membership Providers[^], Custom MembershipProvider and RoleProvider Implementations that use Web Services[^]
And of course, you can set up authentication to be cookie-less (independent of the provider itself), see:[^]
Share this answer
Chandrakant Kumawat 21-May-13 3:14am    
Thanks Zorgo...

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