2

Is there really any difference between how Forms Authentication work in asp.net and asp.net MVC applications ?

1
  • 1
    Not really. Authentication works the same. Authorization works differently. In MVC you set permissions to controller methods and in webforms you set permissions to files. Commented Jul 6, 2013 at 14:30

2 Answers 2

1

There is no difference. They both are using Core ASP.NET Framework. Which contains Authentication, Membership, Session and cache managment. All these features work exatly the same in asp.net and asp.net mvc.

Sign up to request clarification or add additional context in comments.

Comments

0

While both Web Forms and MVC use the same exact principles and mechanics in authentication, but we do not have server controls in MVC, thus there are some different things to pay attention to. In MVC you will see the [Authorize] attribute in which you will decorate methods with.

Regarding the Sessions, TempData is a very lightweight session used for redirects see When to use TempData vs Session in ASP.Net MVC.

In MVC a lot of careful thought had to be be put into the use of sessions. MVC has a temp , also regarding session, here is an very good stackoverflow quesiton and answer on using it Session variables in ASP.NET MVC

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.