In webform after log in into an account, we use the following code in the Page Load function of each .aspx file to check whether the page is accessible or not:
if (Session["User"]!=null)
{
Response.Redirect("LoggedIn.aspx);
}
What should I do for performing the same thing in MVC5 ??

Amit KumarPosted Dec 21, 2017, 4:54 AM
Laxmidhar SahooPosted Dec 21, 2017, 4:30 AM
Sabab ZulfikerPosted Dec 20, 2017, 5:07 AM
Laxmidhar SahooPosted Dec 20, 2017, 4:32 AM
Sabab ZulfikerPosted Dec 20, 2017, 4:23 AM