[Mongrel] vista on mongrel

Luis Lavena luislavena at gmail.com
Sat Oct 13 14:12:39 EDT 2007

On 10/13/07, Raj Prakash <spamraj at yahoo.com> wrote:
> Thank you for a a quick response, Luis.
> I am using Ruby 1.8.5 and Rails 1.2.3
> According to the comment in ruby source In 1.8.5 the default is pstore.
> Could you please tell me the specific changes that you did to the
> environment
> to force pstore.
> Apparently, Jonah Fox is still having the problem. I see a post from him
> and a few replies just today at
> http://thread.gmane.org/gmane.comp.lang.ruby.rails/156245
> There is one difference though I have problem in both IE and firefox

Let me explain this better:

Latest versions of Rails (1.2.3 and Edge) sport a cookie-based session
handling as default.

The combination of this fact with Firefox on windows shows problems.

On the other hand, webrick don't show this issue because cookies are
handled in a different way.

To workaround this problem, until deeper investigation of it, I
suggest you switch for local/development to PStore based session (that
was the default on previous versions).

You need to uncomment and modify the config/environment.rb around lines 29-31:

config.action_controller.session_store = :PStore

Please note: that will work OK on development, but this will not under
production since multiple mongrel instances will have problems
accessing the session files (stored in tmp/sessions).

For production I suggest change to :active_record_storage as suggested
in environment.rb comments and perform the rake task needed to create
these tables on the DB.

Also, I'll like some volunteers to try the new release candidate of
Mongrel (1.0.2) [1] and let us know [2] if worked for you under the
same situation.

[1] http://rubyforge.org/pipermail/mongrel-users/2007-October/004108.html
[2] mongrel-users at rubyforge.org (mailing list)


Luis Lavena
Multimedia systems
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi

More information about the Mongrel-users mailing list