Forum: Ruby on Rails cookies not deleting?????

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.
Manish S. (Guest)
on 2006-04-05 05:21
(Received via mailing list)
I was running into a problem where i was setting two different cookies
for "
www.myapp.com" and "myapp.com".  To fix this, when i set the cookie i
specified the domain to be ".myapp.com".  However now when i try to
delete
the cookie cookies.delete :myapp_cookie, it wont delete.

Why is that?

Here is my code:

when logging in -
...
cookies[:myapp_cookie] = {:value => logged_in_user.get_remember_token,
                                        :expires => 1.year.from_now,
                                        :domain  => '.myapp.com'}
...


when logging out -
...
 cookies.delete :myapp_cookie

...

Any help would be greatly appreciated.
This topic is locked and can not be replied to.