I have huge number of file in tmp/sessions/ , so how can I manage that. It takes many storage spaces. Is It possible to config sessions expire to solve that problem or any plug-ins Thank You - Artit Satanakulpanich http://www.speedthai.com [First Rails Hosting in Thailand] http://www.rubybox.net (Ruby Thai Language) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 14, 2007, at 4:17 AM, Artit Satanakulpanich wrote:> I have huge number of file in tmp/sessions/ , so how can I manage > that. It takes many storage spaces. > Is It possible to config sessions expire to solve that problem or > any plug-insHave Rails use your database for Sessions. http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionStore -- gw (www.railsdev.ws) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 14 Nov 2007, at 17:23, Greg Willits wrote:> > On Nov 14, 2007, at 4:17 AM, Artit Satanakulpanich wrote: > >> I have huge number of file in tmp/sessions/ , so how can I manage >> that. It takes many storage spaces. >> Is It possible to config sessions expire to solve that problem or >> any plug-ins > > > Have Rails use your database for Sessions. > > http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionStoreThat''s a good thing, but as far as actually getting rid of old sessions, a lot of people just have a cron job that removes old session files/rows Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 14 Nov 2007, at 17:23, Greg Willits wrote: > > >> On Nov 14, 2007, at 4:17 AM, Artit Satanakulpanich wrote: >> >> >>> I have huge number of file in tmp/sessions/ , so how can I manage >>> that. It takes many storage spaces. >>> Is It possible to config sessions expire to solve that problem or >>> any plug-ins >>> >> Have Rails use your database for Sessions. >> >> http://wiki.rubyonrails.org/rails/pages/HowtoChangeSessionStore >> > > That''s a good thing, but as far as actually getting rid of old > sessions, a lot of people just have a cron job that removes old > session files/rows >I would advise to use tmpwatch for this. Cleaning temporary files left over by aborted programs or programs that don''t clean after themselves is mandatory if you don''t want a partition to blow up in the end. Tmpwatch does this efficiently with minimum configuration. Lionel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---