# Sessions are disabled with "config.cache\_classes =true"

**URL:** <https://www.ruby-forum.com/t/sessions-are-disabled-with-config-cache-classes-true/175890>\
**Category:** Rails\
**Created:** [September 22, 2009, 10:09am UTC](https://www.ruby-forum.com/t/sessions-are-disabled-with-config-cache-classes-true/175890 "2009-09-22T10:09:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k560](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/838e76/32.png) [@k560](https://www.ruby-forum.com/u/k560)\
**Post date:** [September 22, 2009, 10:09am UTC](https://www.ruby-forum.com/t/sessions-are-disabled-with-config-cache-classes-true/175890/1 "2009-09-22T10:09:54Z")

</div>

Hi.

I found that sessions are disabled and can’t login with  
restful\_authentication.

Session and login works fine with “config.cache\_classes = false” but  
it doesn’t work with “config.cache\_classes = true”.  
It doesn’t show any errors, but redirect to login page.  
It seems to be post nothing.

Does it have to do with session\_storre, active\_record\_store,  
protect\_from\_forgery, or other configrations?

my enviroments is Rails 2.2.2 Ruby 1.8.6

Any ideas?
