I have an internal web app being built in ASP.NET 4. We are stuck with using an authentication API built by another team. If a user to the site is authenticated
ASP.NET 4
Everything you could do in forms you can do in MVC, just set the session variable in the controller login action.
Or you can do this: In the login action add formsauthentication.setauthcookie("username")
formsauthentication.setauthcookie("username")
After this any action with the [Authorize] keyword will allow the current user in.