In my ASP.NET MVC (5) application, session is not being used to identify whether a user is logged in or not. Rather, I'm using some encrypted values in query strings or hidden fields.
But just now I realized that any person can visit those user-only-pages from browser history.
Any idea to solve this problem?
UPDATE: Most of the MVC Actions send partial html/json through ajax.
UPDATE:
[OutputCache(NoStore = true, Duration = 0, VaryByParam = "None")]
public ActionResult Index()
{
return View(); // I want it from viewing from browser cache.
}