Cookies not deleting?

I was running into a problem where i was setting two different cookies
for "" and “”. To fix this, when i set the cookie i
specified the domain to be “”. However now when i try to
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 => ‘’}

when logging out -

cookies.delete :myapp_cookie

Any help would be greatly appreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs