Using cookies to store session in ASP MVC

前端 未结 6 1521
野性不改
野性不改 2021-02-03 10:28

Storing the entire session in a cookie has been standard in Rails for the last few years - is there an easy way to achieve something similar with ASP MVC?

By default, an

6条回答
  •  太阳男子
    2021-02-03 10:57

    You shouldn't use Sessions for this, but Profiles instead. Profiles use cookies to match computers to profiles, etc. The profile key is stored in a cookie, and isn't lost when closing browser etc.

    Info here; http://odetocode.com/articles/440.aspx

提交回复
热议问题