Check session value after login in MVC
Hello.I am new to MVC.
I have worked on web application.
My requirement is, if I have 2 pages, login and home.
If user directly enters URL of Home in browsers, it should first check for session values related to user.
For this, I have created 1 class names as "base", where I checked session contains value or not.
Home page inherited from base class, so that it automatically redirect to login page.
Same scenario I want in MVC5.
I have 2 controllers, Login and Student.
After login, I store session values into base class.
I want to create above scenario so that, if user enters url in browser, it first check for session.
Its like controller inherit from controller / class.