# Session Store Issues on Production Server

**URL:** <https://www.ruby-forum.com/t/session-store-issues-on-production-server/188029>\
**Category:** Rails\
**Created:** [May 4, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/session-store-issues-on-production-server/188029 "2010-05-04T15:14:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [May 4, 2010, 3:14pm UTC](https://www.ruby-forum.com/t/session-store-issues-on-production-server/188029/1 "2010-05-04T15:14:41Z")

</div>

Hello,

I am using AuthLogic as my authentication gem. Everything is great on  
my development server. When I upload to my passenger driven  
production server at Dreamhost, the sessions are persisting  
relentlessly. In other words, a user cannot log out. I have tried  
implementing the Active Record session store and have changed  
the :secret key in initializers/session\_store.rb, but for some reason,  
it is not resetting my users. Another interesting note is that in the  
Appplication Controller if I force current\_user\_session to return  
false, the user is logged out (of course). The problem seems to be  
coming from user\_session.delete.

Has anyone encountered this before? Is there something in Rack that  
is holding this back?

Thanks!

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [May 4, 2010, 3:26pm UTC](https://www.ruby-forum.com/t/session-store-issues-on-production-server/188029/2 "2010-05-04T15:26:58Z")

</div>

Another interesting note is that this problem is agnostic to the  
browser. Deleting sessions and cookies has no effect on it  
whatsoever. This leads me to believe that the issue is server based  
with Rack somewhere.

---

<div class="post-metadata">

**Author:** ![mindtonic](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f19dbf/32.png) [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Post date:** [May 5, 2010, 12:47am UTC](https://www.ruby-forum.com/t/session-store-issues-on-production-server/188029/3 "2010-05-05T00:47:47Z")

</div>

It has been suggested that this issue may be related to the version of  
Passenger that is running on Dreamhost. I have been able to isolate  
the issue to Passenger because it does not occur when the site is  
running on mongrel. I believe the source of the issue is in the way  
Passenger is dealing with the sessions. Has anyone had any experience  
with this?
