TempData: Is It Safe?

前端 未结 5 2235
南笙
南笙 2021-02-18 15:04

I am using the TempData in order to preserve my model in when using a RedirectToAction. It works fine, but I have a nagging feeling that it might not b

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-18 15:40

    I have limited the use of TempData to pass model object validation message between views and action. I haven't looked into the usage of Tempdata from security perspective but following SO thread discuss the same : HttpContext.Items with ASP.NET MVC. See the last few thread comments and related discussions.

提交回复
热议问题