I'm new to MVC and so far I've created some pages. As I only want to let members access to the site I've added
[Authorize] for these pages so other are redirected to to login/register page. But I've no clue about the next steps.
How do I give authorization upon success login? Do I use session for the current logged user?
I got MVC template which already have its own login, but I want to create my own, using database(database-first) to get better understanding.
Any help is much appreciate. Thanks.