# Rails doesn't create sessions in production

**URL:** <https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818>\
**Category:** Rails\
**Created:** [November 13, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818 "2006-11-13T18:01:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [November 13, 2006, 6:01pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/1 "2006-11-13T18:01:32Z")

</div>

I’m having an issue with sessions in the 1.2 pre-release code.  
Sessions are created when the site is in development mode, and they  
are not created when the site is in production mode. I’m using a  
database store, but even when I switch back to the file system store,  
sessions are not created. The only difference in the way that I am  
running rails is that I switch to production mode with  
“RAILS\_ENV=production script/server”

Where should I begin looking first?

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [November 13, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/2 "2006-11-13T19:45:59Z")

</div>

On Nov 13, 2006, at 12:00 PM, Bryan L. wrote:

> I’m having an issue with sessions in the 1.2 pre-release code.  
> Sessions are created when the site is in development mode, and they  
> are not created when the site is in production mode. I’m using a  
> database store, but even when I switch back to the file system store,  
> sessions are not created. The only difference in the way that I am  
> running rails is that I switch to production mode with  
> “RAILS\_ENV=production script/server”
> 
> Where should I begin looking first?

I’m going to answer my own question.

I had a plugin installed that changed the location of the sql session  
store. (sneaky plugin developers!)

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [November 13, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/3 "2006-11-13T20:04:58Z")

</div>

Bryan L. wrote:

> On Nov 13, 2006, at 12:00 PM, Bryan L. wrote:

> I had a plugin installed that changed the location of the sql session  
> store. (sneaky plugin developers!)

Accountability please - which plugin?

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [November 13, 2006, 8:46pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/4 "2006-11-13T20:46:21Z")

</div>

On Nov 13, 2006, at 2:04 PM, Daniel Collis-puro wrote:

> Bryan L. wrote:
> 
> > On Nov 13, 2006, at 12:00 PM, Bryan L. wrote:
> 
> > I had a plugin installed that changed the location of the sql session  
> > store. (sneaky plugin developers!)
> 
> Accountability please - which plugin?

I’m not going to say here, but I have followed up with the developer,  
and hopefully he will make the changes in his documentation.

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [November 13, 2006, 9:51pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/5 "2006-11-13T21:51:52Z")

</div>

Bryan L. wrote:

> I’m not going to say here, but I have followed up with the developer,  
> and hopefully he will make the changes in his documentation.

I don’t understand this. You know of a bug that’s probably a pretty  
difficult one to catch, yet you won’t disclose it? We’re in the open  
source/free software world here - disclosure is our middle name.

If you’re worried about embarassing the author, don’t be. If the author  
is so thin-skinned that they won’t take critcism in stride, they  
shouldn’t make code freely available.

---

<div class="post-metadata">

**Author:** ![bryan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/db5fbb/32.png) [@bryan](https://www.ruby-forum.com/u/bryan)\
**Post date:** [February 3, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/rails-doesnt-create-sessions-in-production/75818/6 "2008-02-03T23:15:18Z")

</div>

> If you’re worried about embarassing the author, don’t be. If the author  
> is so thin-skinned that they won’t take critcism in stride, they  
> shouldn’t make code freely available.

I could not agree more. We are pulling our hair trying to fix this very  
problem, would you please make the solution available?
