Repeated cookie query or Storing in viewstate? Which is the better practice?

前端 未结 4 540
旧时难觅i
旧时难觅i 2021-01-23 18:37

I have a internal website that users log into. This data is saved as a cookie. From there the users go on their merry way. Every so often the application(s) will query the au

4条回答
  •  情歌与酒
    2021-01-23 19:18

    I would use the cookie method. Session is okay but gets disposed by asp.net on recompile, and you have to use a non session cookie if you want to persist it after session anyway. Also if you ever use a stateserver its essentially doing the same thing (stores session in the db). Session is like a quick and dirty fix, real men use cookies.

提交回复
热议问题