Is there a way to turn sessions off in Rails? Doesn''t appear to be. Also, is there any garbage collection for stale sessions? On those two topics, are there any problems with Rails handling those options? I ask because it seems like something that would have been included. If there is no technical reason why it wasn''t included, then I''ll create/submit a source patch to add them. Thanks Bob Silva http://www.railtie.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060128/09003801/attachment-0001.html
Rodrigo Dominguez
2006-Jan-28 17:58 UTC
[Rails] Rails Sessions - Disabling and Garbage Collection
Sessions are used for flash, so if you use flash then don?t disable the sessions. You can set ::ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS = false to dissable the sessions processing Abuot the garbage collection topic, I have no idea Rodrigo Dom?nguez Consultor Av. Directorio 183 1? Piso Tel: 4921-1648 / 4926-1067 Cel: 15-5695-6027 <mailto:rorra@rorra.com.ar> rorra@rorra.com.ar <http://www.rorra.com.ar/> www.rorra.com.ar -----Mensaje original----- De: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] En nombre de Bob Silva Enviado el: s?bado, 28 de enero de 2006 14:50 Para: rails@lists.rubyonrails.org Asunto: [Rails] Rails Sessions - Disabling and Garbage Collection Is there a way to turn sessions off in Rails? Doesn?t appear to be. Also, is there any garbage collection for stale sessions? On those two topics, are there any problems with Rails handling those options? I ask because it seems like something that would have been included. If there is no technical reason why it wasn?t included, then I?ll create/submit a source patch to add them. Thanks Bob Silva http://www.railtie.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060128/25d8e6cc/attachment.html
Tom Mornini
2006-Jan-28 19:48 UTC
[Rails] Rails Sessions - Disabling and Garbage Collection
Is there a way to disable sessions on per Controller or Controller/Action combination? Seems a waste to use them for machine interfaces such as web services and such cases where there''s no need for a session. And, if there isn''t, then I''ll submit a patch for that. -- -- Tom Mornini On Jan 28, 2006, at 9:50 AM, Bob Silva wrote:> Is there a way to turn sessions off in Rails? Doesn?t appear to be. > > > > Also, is there any garbage collection for stale sessions? > > > > On those two topics, are there any problems with Rails handling > those options? > > I ask because it seems like something that would have been included. > > If there is no technical reason why it wasn?t included, then I?ll > create/submit a source patch to add them. > > > > Thanks > > > > Bob Silva > > http://www.railtie.net/ > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060128/55828b60/attachment-0001.html
Philip Ross
2006-Jan-28 20:19 UTC
[Rails] Re: Rails Sessions - Disabling and Garbage Collection
Tom Mornini wrote:> Is there a way to disable sessions on per Controller or > Controller/Action combination?Yes, session :off session :off, :only => %w(foo bar) http://api.rubyonrails.com/classes/ActionController/SessionManagement/ClassMethods.html#M000080 Phil
Tom Mornini
2006-Jan-28 20:24 UTC
[Rails] Re: Rails Sessions - Disabling and Garbage Collection
Rockin'' Good! :-) Thanks. -- -- Tom Mornini On Jan 28, 2006, at 12:19 PM, Philip Ross wrote:> Tom Mornini wrote: >> Is there a way to disable sessions on per Controller or >> Controller/Action combination? > > Yes, > > session :off > session :off, :only => %w(foo bar) > > http://api.rubyonrails.com/classes/ActionController/ > SessionManagement/ClassMethods.html#M000080 > > Phil > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails