Modules and Sessions

I have a lot of trouble putting an object which is defined in a module inside a session. Anyone else have this problem? Is there something that I need to do for this?