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 http://jira.codehaus.org/browse/GRAILS-978 for a potential fix).
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.
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.
Thanks!