Posted on: 3/21/2014 2:13:47 PM | Views : 750

Hi,
I'm working on an ASP.NET Mvc5 project, where a login page is part of the system. The login page works fine when logging in the first time. However, if when logged in I close my browser and reopen the page it now renders the master layout with the login page as the rendered body. These are my routings:
using System.Web.Mvc; using System.Web.Routing; namespace My.Project.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute("LoginPage", "{controller}/{action}/{id}", new { controller = "Login", action = "Login", id = UrlParameter.Optional } ); routes.MapRoute("Default", "{controll ...

Go to the complete details ...