I'm creating a login in c#, mvc. it works fine. Sign out is also working properly. But after user signed out, if user press back button it goes to the page where I redirect if login success. I tried with following by adding it to global.asax.cs
. but it didn't work. And also I tried using javascript. At that time if user press back button it shows the page and disappears. What can I do for that?
This is how I tried with c#
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
WebApiConfig.Register(GlobalConfiguration.Configuration);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
protected void Application_BeginRequest()
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetExpires(DateTime.UtcNow.AddMilliseconds(-10));
Response.Cache.SetNoStore();
}
please help me with this
您无法清除用户历史记录,但是可以从成功登录后重定向用户的页面中添加未授权用户的重定向。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.