Have you tried using the following in your controller?

  session_options['cookie_only'] = false

I think that will work, I just don't know how to specify which methods
I want to apply the option.

On Mar 23, 6:04 am, hawkerb <[email protected]> wrote:
> I am having exactly the same problem. However, for me, old:
>
> class ImagesController < ApplicationController
>   session :cookie_only => false
> end
>
> does *not* work anymore. TomRossi7, can you double check does it work
> for you, please?
>
> The only way I worked this around, is to get sessions directly from
> SessionStore, which is extremely bad. Also I can't find tests
> regarding cookie_only option in 2.3.
>
> On Mar 23, 1:44 am, TomRossi7 <[email protected]> wrote:
>
> > I'm trying to figure out how I should set my session options for Rails
> > 2.3.  In Rails 2.2:
>
> >   session :cookie_only => false, :only => :swf_upload
>
> > In Rails 2.3, it looks like I need to use:
>
> >   request.session_options['cookie_only'] = false
>
> > But how do I tell it that I only want that option on a specific method
> > in the controller (the :only option)?
>
> > Thanks!
> > Tom
>
> > p.s.  The old way works, but the deprecation warnings are driving me
> > nuts when I run my tests.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to