开发者

SSL Form Post in ASP.NET MVC 1.0

I'd like to use SSL for the post action on the login page of my MVC 1.0 app. I've seen some articles related to the [RequireSSL] attribute in ASP.NET MVC Futures. However, since this works using a redirect, I assume it's not an option (can't redirect a POST, correct?).

Ultimately, my goal is to get the Html.BeginForm method to render "https://..." as the form's action so that 开发者_JAVA百科I can secure the information being posted (login info).

How have others handled this?


You could secure the form GET as well. If the form is retrieved with HTTPS, Html.BeginForm will automatically add https when rendering the form.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜