ASP. NET MVC2: Where abouts do I set Current.User from a Session variable?
- by Adam Brown
Hi,
I'm trying to get authentication and authorisation working in an ASP .NET MVC2 site.
I've read loads of tutorials and some books which explain how you can use attributes to require authorisation (and membership in a role) like this:
[Authorize(Roles="Admin")]
public ActionResult Index()
{
return View();
}
I've made classes that…