This works for me:
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:tmpdir] =
"#{RAILS_ROOT}/sessions/"
-Tom
On 7/21/05, Lee O''Mara <lee-O8glSrxzjJo@public.gmane.org>
wrote:>
> Shelby Westman wrote:
> > Is it possible to set the directory where Rails using the default
> > PStore will store its sessions? For example, if I don''t want
them to
> > go into /tmp, but rather somewhere else, how do I set that?
>
> Add something like this to config/environment.rb
>
> ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update(:tmpdir =>
> ''/somewhere/else/'')
>
> --
> Lee
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Tom Wilcoxen
http://convergentarts.com
http://www.dreamhost.com/r.cgi?twilcoxen
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails