Re: [Rails] issue in delete a cookie ( cannot 'eat' it ..)
On Mon, Nov 12, 2012 at 11:47 AM, Erwin <yves_dufour@mac.com> wrote:
> I set my cookies at root domain level ( lvh.me in dev) , accessible from
> within each subdomain
> w session store initializer :
> Rails.application.config.session_store :active_record_store, :key =>
> '_tests_session', :domain => :all
Did you try setting your domain to the actual domain?
Rails.application.config.session_store :active_record_store, :key =>
'_tests_session', :domain => 'example.com'
> when a user login into a subdomain, I have
> cookies[:login]
> "{:user_id=>3, :subdomain_name=>\"coocoo\"}"
>
> when the user logout , I should delete this cookie,
> cookies.delete(:login, :host => Rails.configuration.host) if cookies[:login]
>
> but it doesn't delete it ... any clue ?
--
Greg Donald
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home