From: Erwin <yves_duf...@mac.com>
Date: Tue, 13 Nov 2012 03:00:38 -0800 (PST)
Local: Tues, Nov 13 2012 6:00 am
Subject: Re: [Rails] issue in delete a cookie ( cannot 'eat' it ..)
[SOLVED] the issue was not with cookies .. I had to change the way I I finally set in initializers/session_store.rb Rails.application.config.session_store :active_record_store, :key => so now I can set/delete the cookies[:login] according to user on signout, I have to delete the cookies[:login], on redirection I have to great post and link about it :
Quoted- As it turns outs 'domain: all' creates a cookie for all the For anyone needing further explanation, Le mardi 13 novembre 2012 07:46:37 UTC+1, Erwin a écrit :
> It's not useful in my case , as I am using FB & Google authentification, > setting :domain => :all , means that the cookies :host is/should_be '.
> cookies.delete(:login, :host => '.example.com') but it's not working
> I am going to test another way : expiring the cookie,...
> def remove_all_cookies(domain=nil)
> Le mardi 13 novembre 2012 05:24:02 UTC+1, Greg Donald a écrit :
>> On Mon, Nov 12, 2012 at 11:47 AM, Erwin <yves_...@mac.com> wrote: >> Did you try setting your domain to the actual domain? >> Rails.application.config.session_store :active_record_store, :key => >> > when a user login into a subdomain, I have >> > when the user logout , I should delete this cookie, >> > but it doesn't delete it ... any clue ? >> -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||