`
CaiDeHen
  • 浏览: 96897 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

#13 Dangers of Model in Session

 
阅读更多
Be careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics