Forum: Ruby on Rails Rails Sessions - Disabling and Garbage Collection

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bob S. (Guest)
on 2006-01-28 19:48
(Received via mailing list)
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 S.

http://www.railtie.net/
Rodrigo D. (Guest)
on 2006-01-28 20:00
(Received via mailing list)
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:removed_email_address@domain.invalid> 
removed_email_address@domain.invalid
 <http://www.rorra.com.ar/> www.rorra.com.ar

-----Mensaje original-----
De: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] En nombre de Bob S.
Enviado el: sábado, 28 de enero de 2006 14:50
Para: removed_email_address@domain.invalid
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 S.
http://www.railtie.net/
Tom M. (Guest)
on 2006-01-28 21:51
(Received via mailing list)
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 M.
Philip R. (Guest)
on 2006-01-28 22:21
(Received via mailing list)
Tom M. 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/ActionControlle...

Phil
Tom M. (Guest)
on 2006-01-28 22:24
(Received via mailing list)
Rockin' Good!

:-)

Thanks.

--
-- Tom M.
This topic is locked and can not be replied to.