# Sessions

**URL:** <https://www.ruby-forum.com/t/sessions/132684>\
**Category:** Rails\
**Created:** [March 23, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/sessions/132684 "2008-03-23T12:02:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![advait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@advait](https://www.ruby-forum.com/u/advait)\
**Post date:** [March 23, 2008, 12:02pm UTC](https://www.ruby-forum.com/t/sessions/132684/1 "2008-03-23T12:02:29Z")

</div>

Hi,

How to make use of sessions for a save button. I am making use of the  
save button in the following way.

I want to make use of sessions inside this save button because once, it  
saves the dialog it should return to the desired url which I am going to  
store inside the sessions.

Thank you

---

<div class="post-metadata">

**Author:** ![advait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e19adc/32.png) [@advait](https://www.ruby-forum.com/u/advait)\
**Post date:** [March 23, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/sessions/132684/2 "2008-03-23T15:48:21Z")

</div>

On Sun, 2008-03-23 at 12:02 +0100, Advait B. wrote:

> store inside the sessions.

* * *

\<% session[:some\_variable] =\> ‘some\_value’ %\>

but it really doesn’t go into the ‘save’ button or if you want it to be  
set when the save button is clicked, set the value inside the controller  
method that handles the save action

Craig
