Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,

I found one of nice solution regarding MVC form authentication, and implement it in application.
MVC form authentication implementation can be got from below URL

Custom-Authentication-and-Authorization-in-ASP.NET-MVC


Although its done, Now I need this implementation for WEB API also. Can any one provide possible solution for WEB api

Second I have 2 questions about this implementation.

1. As user authentication is maintained in cookies, so what if cookies are disabled by user?
2. As i see, I logout from application, but still when i navigate back by browser navigation, it still shows previous page, instead to navigate to login/access denied. Although performing some operation on such page, will authenticate and navigate to login page. But still i want if user is logout, then there should no way to navigate back. So what should i do for this.

Thanks in Advance
Posted

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