serpent403
2012-Jan-16 06:36 UTC
Deleting cookie of the authorization page in rails application
In my rails application i am using oauth to get access to the user''s profile data. The thing is when the authorization login page pops up, the user has to enter his username and password, which gets saved in the browser as a cookie. Is there any way to DELETE this cookie(obviously not manually)? I am asking this because when the oauth page is called again, this cookie saved in my browser automatically signs in the user. This has become a nuisance for my project. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
dmlicht
2012-Jan-16 14:45 UTC
Re: Deleting cookie of the authorization page in rails application
Check out ActionDispatch::Cookies on http://api.rubyonrails.org/ I think you''ll want to use cookies.delete On Jan 16, 1:36 am, serpent403 <aman.webdra...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In my rails application i am using oauth to get access to the user''s > profile data. The thing is when the authorization login page pops up, > the user has to enter his username and password, which gets saved in > the browser as a cookie. Is there any way to DELETE this > cookie(obviously not manually)? I am asking this because when the > oauth page is called again, this cookie saved in my browser > automatically signs in the user. This has become a nuisance for my > project.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.