Click here to Skip to main content
15,903,523 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We Need Urgent Requirement on Form Authentication In MVC 4 without using coockies.

Please help me out.


Thank you
Posted
Comments
Sinisa Hajnal 12-Mar-15 7:28am    
This is not a good question. You have to show what you've tried, show that you put some effort into solving the problem before asking. Also, it is urgent to you, but no one here feels that urgency, you will get the answer faster asking detailed and precise question and by looking for the solution especially good documented one as this.

1 solution

The web is stateless so it uses cookies to store state such as if the user is authenticated or not. If you want to use forms authentication without cookies then you can enable cookieless authentication

https://msdn.microsoft.com/en-us/library/system.web.configuration.formsauthenticationconfiguration.cookieless(v=vs.110).aspx[^]

Set the mode to UseUri. However there are downsides to this

https://msdn.microsoft.com/en-us/library/aa479315.aspx[^]

Your only other alternative is to not use forms auth at all but use Basic Authentication or Windows Authentication. Yet one more option would be to challenge why you can't use cookies as the reasoning behind that decision is probably flawed.
 
Share this answer
 

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