# Has anyone had trouble with deleting cookies?

**URL:** <https://www.ruby-forum.com/t/has-anyone-had-trouble-with-deleting-cookies/73572>\
**Category:** Rails\
**Created:** [October 25, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/has-anyone-had-trouble-with-deleting-cookies/73572 "2006-10-25T12:14:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kljl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kljl](https://www.ruby-forum.com/u/kljl)\
**Post date:** [October 25, 2006, 12:14pm UTC](https://www.ruby-forum.com/t/has-anyone-had-trouble-with-deleting-cookies/73572/1 "2006-10-25T12:14:42Z")

</div>

i just can’t do it!  
i assigned a cookie:

cookies[:logged\_in] = {:value =\> session[‘user’].email, :expires =\> nil,  
:path =\> ‘/’}

it saved, as i saw the cookie in the browser preferences;  
and then tried to delete it.

cookies.delete :logged\_in

and IT DOESN’T WORK!!!  
has anyone had any problems with this or am i missing something really  
really stupid?

---

<div class="post-metadata">

**Author:** ![kljl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kljl](https://www.ruby-forum.com/u/kljl)\
**Post date:** [October 25, 2006, 12:23pm UTC](https://www.ruby-forum.com/t/has-anyone-had-trouble-with-deleting-cookies/73572/2 "2006-10-25T12:23:40Z")

</div>

forget it. it was stupid.
