3
在基於MVC的認證例如Visual Studio的OOB形式,當用戶註銷回傳時,爲什麼使用MVC文章註銷?
@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
@Html.AntiForgeryToken()
<a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
}
是否有一個原因,這不是普通GET,因爲沒有數據被送回服務器?