# Sessions with class object

**URL:** <https://www.ruby-forum.com/t/sessions-with-class-object/111724>\
**Category:** Rails\
**Created:** [August 10, 2007, 4:04am UTC](https://www.ruby-forum.com/t/sessions-with-class-object/111724 "2007-08-10T04:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dave](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://www.ruby-forum.com/u/dave)\
**Post date:** [August 10, 2007, 4:04am UTC](https://www.ruby-forum.com/t/sessions-with-class-object/111724/1 "2007-08-10T04:04:26Z")

</div>

Hi,  
I have a RoR app working (with Ajax) and I am trying to hook it up to  
a class that is using soap4r.  
I have a simple example working that stores an index through sessions  
and will dynamically update it.  
I want to store my class object in the session but as soon as I add it  
to the session everything breaks… no error except the wonderful  
message “something went wrong”.

I found a couple of examples that mention that I need to put a  
model :blah to preload… but I am not using a database so that  
doesn’t work.

Any ideas?

=D
