# Session help

**URL:** <https://www.ruby-forum.com/t/session-help/133646>\
**Category:** Rails\
**Created:** [April 2, 2008, 8:59am UTC](https://www.ruby-forum.com/t/session-help/133646 "2008-04-02T08:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [April 2, 2008, 8:59am UTC](https://www.ruby-forum.com/t/session-help/133646/1 "2008-04-02T08:59:54Z")

</div>

Hi  
I have partial form and i have attached its html generated  
version…When I click on each select what happens is another search  
window replaces this partial which is completely inside a div.Then again  
the search result comes on next window and when i select one again the  
first page comes with new data(Here database not updated it happens only  
upon save).But what my problem is suppose if I select first select and  
then second select the result of first goes …Should I use session,… to  
save temperorily this data or is there any other solution.As I am new to  
session please help me

Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [April 2, 2008, 9:21am UTC](https://www.ruby-forum.com/t/session-help/133646/2 "2008-04-02T09:21:45Z")

</div>

Yes, you should use a session, or a temporary place within the  
database. A session is better, though. Make sure you write code to  
expire your sessions, though.

Julian.

Learn Ruby on Rails! CHECK OUT THE FREE VIDS (LIMITED TIME) NEW VIDEO  
(#2) OUT 3rd APRIL  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)
