title: Storing Grails/GORM domain objects in the session - why not?
body: <p>I'm learning Grails/GORM and as I've understood it the current best practice is not to store domain objects in the session (see <a href="http://jira.codehaus.org/browse/GRAILS-978" rel="nofollow noreferrer">http://jira.codehaus.org/browse/GRAILS-978</a> for a potential fix).</p>
  
  <p>The workaround is simple; simply store the reference id for the domain object in the session, and then re-retrieve the object using on the next request.</p>
  
  <p>My question is: why is it the case that domain objects cannot be stored safely in the session? I'm trying to understand the technicalities behind it.</p>
  
  <p>Thanks!</p>