# Session values not being stored

**URL:** <https://www.ruby-forum.com/t/session-values-not-being-stored/166729>\
**Category:** Rails\
**Created:** [April 29, 2009, 12:33am UTC](https://www.ruby-forum.com/t/session-values-not-being-stored/166729 "2009-04-29T00:33:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@pepe](https://www.ruby-forum.com/u/pepe)\
**Post date:** [April 29, 2009, 12:33am UTC](https://www.ruby-forum.com/t/session-values-not-being-stored/166729/1 "2009-04-29T00:33:42Z")

</div>

This is sort of a repeat post. I apologize in advance but the other  
one got one reply and was not that helpful to solve the problem I’m  
having.

Evironment is Rails 2.3.2. and Ruby 1.8.6 (patchlevel 111). Windows  
XP.

I have an application with only 1 controller and several auto-complete  
fields that I store in session variables. When I run the application  
in development mode the session variables get updated but when I run  
it in production mode the session variables are empty.

Weirdly enough, if I change a parameter in the production.rb program,  
in config/environments from:

config.action\_controller.consider\_all\_requests\_local = false

to:

config.action\_controller.consider\_all\_requests\_local = true

the application works in production.

I am pretty sure what I did is not the right fix. I would like to find  
the right solution and if possible an explanation of why the change I  
made made the application “magically” work.

Thanks a lot guys.

Pepe

---

<div class="post-metadata">

**Author:** ![pepe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@pepe](https://www.ruby-forum.com/u/pepe)\
**Post date:** [May 2, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/session-values-not-being-stored/166729/2 "2009-05-02T22:20:54Z")

</div>

Please help. Is it possible that nobody has any idea about this  
problem? I would like to fix the code the right way.

Thank you.

Pepe
