How can I go about changing the default location that Webrick saves its session files into? The reason being that I would like to run both Apache (as my development server) and Webrick (just for testing) on the same machine, on different ports. Problem is, the session files are conflicting and I would like tell Webrick (or apache) to store their files somewhere else.. perhaps a subdirectory in /tmp ? Thank you -- - Ramin http://www.getintothis.com/blog
Julian ''Julik'' Tarkhanov
2005-Sep-22 01:44 UTC
Re: modify tmp location for ruby session files
On 22-sep-2005, at 0:22, Ramin wrote:> How can I go about changing the default location that Webrick saves > its session files into? The reason being that I would like to run both > Apache (as my development server) and Webrick (just for testing) on > the same machine, on different ports. Problem is, the session files > are conflicting and I would like tell Webrick (or apache) to store > their files somewhere else.. perhaps a subdirectory in /tmp ?ActionPack has configurable session stores, look in the documentation. I think the one used by default (FileStore) allows setting the storage path as well. -- Julian "Julik" Tarkhanov
I''m sorry.. you mean look in the Rails API (http://api.rubyonrails.com/)? I dont see any references to ActionPack or FileStore anywhere... sorry, im kinda new to all of this.. On 9/21/05, Julian ''Julik'' Tarkhanov <listbox-RY+snkucC20@public.gmane.org> wrote:> > On 22-sep-2005, at 0:22, Ramin wrote: > > > How can I go about changing the default location that Webrick saves > > its session files into? The reason being that I would like to run both > > Apache (as my development server) and Webrick (just for testing) on > > the same machine, on different ports. Problem is, the session files > > are conflicting and I would like tell Webrick (or apache) to store > > their files somewhere else.. perhaps a subdirectory in /tmp ? > > ActionPack has configurable session stores, look in the > documentation. I think the one > used by default (FileStore) allows setting the storage path as well. > > -- > Julian "Julik" Tarkhanov > >-- - Ramin http://www.getintothis.com/blog
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:tmpdir]
"#{RAILS_ROOT}/tmp"
On 9/21/05, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I''m sorry.. you mean look in the Rails API
> (http://api.rubyonrails.com/)? I dont see any references to ActionPack
> or FileStore anywhere... sorry, im kinda new to all of this..
>
> On 9/21/05, Julian ''Julik'' Tarkhanov
<listbox-RY+snkucC20@public.gmane.org> wrote:
> >
> > On 22-sep-2005, at 0:22, Ramin wrote:
> >
> > > How can I go about changing the default location that Webrick
saves
> > > its session files into? The reason being that I would like to run
both
> > > Apache (as my development server) and Webrick (just for testing)
on
> > > the same machine, on different ports. Problem is, the session
files
> > > are conflicting and I would like tell Webrick (or apache) to
store
> > > their files somewhere else.. perhaps a subdirectory in /tmp ?
> >
> > ActionPack has configurable session stores, look in the
> > documentation. I think the one
> > used by default (FileStore) allows setting the storage path as well.
> >
> > --
> > Julian "Julik" Tarkhanov
> >
> >
>
>
> --
> - Ramin
> http://www.getintothis.com/blog
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>