# Session for Multi-Page Flow and complex objects

**URL:** <https://www.ruby-forum.com/t/session-for-multi-page-flow-and-complex-objects/118906>\
**Category:** Rails\
**Created:** [November 1, 2007, 8:40am UTC](https://www.ruby-forum.com/t/session-for-multi-page-flow-and-complex-objects/118906 "2007-11-01T08:40:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mozmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Post date:** [November 1, 2007, 8:40am UTC](https://www.ruby-forum.com/t/session-for-multi-page-flow-and-complex-objects/118906/1 "2007-11-01T08:40:16Z")

</div>

I have a multi-step flow where the primary model has a number of  
“has\_many” relationships. I’ve read of people storing their Model in  
the session for multi-step forms, but for some reason I feel dirty  
when I do this.

For my example, I have a slideshow:

Slideshow

- has\_many images
- has\_many invites
- has\_one

Invites is a simple mapping table which associates users to the  
slideshow. I also want to store the raw cover image data in the  
session until the slideshow has been created.

Is storing this in the session advisable? I’m using an active record  
store session with MySQL, should I worry about overrunning the  
“longtext” data field? What are other solutions that I could use?

Thanks!  
Jeremy
