# Model stored in the session lost the the early join model

**URL:** <https://www.ruby-forum.com/t/model-stored-in-the-session-lost-the-the-early-join-model/126535>\
**Category:** Rails\
**Created:** [January 19, 2008, 4:35am UTC](https://www.ruby-forum.com/t/model-stored-in-the-session-lost-the-the-early-join-model/126535 "2008-01-19T04:35:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaoxt1983](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b4bc9f/32.png) [@gaoxt1983](https://www.ruby-forum.com/u/gaoxt1983)\
**Post date:** [January 19, 2008, 4:35am UTC](https://www.ruby-forum.com/t/model-stored-in-the-session-lost-the-the-early-join-model/126535/1 "2008-01-19T04:35:21Z")

</div>

I have a user model and it has one user\_state, I use  
User.find(id,:include=\>[:user\_state]) to retrieve it, but when I store  
this user object in session, and fetch it after another http request,  
it seems when I use user.user\_state, it retrieve the user\_state from  
database again, why and how to resolve this problem?
