[Rails] Re: CGI and FastCGI problems
Francois GORET
fg at siamecommerce.com
Fri Dec 16 13:43:16 GMT 2005
On Friday 16 December 2005 20:22, Rick wrote:
> We've also had this problem and used this solution. However no one here
> has (so far) been able to say what the problem actually is and how to
> cure it long term.
>
> Anyone?
Had been bitten too by this problem for 2 different causes:
1) too many sessions in /tmp dir. Found a solution in the "Ruby on Rails"
book, which is to have cron issuing the following command from time to time:
find /tmp/ -name 'ruby_sess*' -ctime +12h -delete
2) much more fun with change in the application: the objects kept in the
session file could not be 'marshaled' back as their base class has had some
changes. Solution: be sure that the browser is killed "for good", do not try
to reuse an existing cookie and make a fresh login in the application after
each change.
Francois
More information about the Rails
mailing list