이 스레드를 따라 가고 있습니다. Session of the user in mvc. 내 요구 사항은 사용자가 asp.net mvc 응용 프로그램에서 로그 아웃하고 다시 버튼을 클릭하면 이전 페이지로 리디렉션되지 않아야한다는 것입니다. 사용자는 로그인 페이지에 보관해야합니다. 위의 스레드에서 다음과 같이 로그 아웃 코드를 시도했습니다. 컨트롤러에서로그 아웃 후 mvc 페이지 리디렉션
public ActionResult LogOut()
{
FormsAuthentication.SignOut();
Session.Abandon(); // it will clear the session at the end of request
return RedirectToAction("Login", "User");
}
가능한 중복 : 이
이 참조 전체 응용 프로그램에 대한 캐시를 비활성화 [로그 아웃 후 브라우저의 뒤로 버튼을 누르면 마지막 화면으로 돌아갑니다.] (http://stackoverflow.com/questions/19315742)/after-logout-if-browser-back-button-then-go-back-last-screen) – CoderHawk