It just took me two hours of programming and slamming my head against the desk to realize that Cookies get saved according to the exact URL of the site. I kept trying to delete the cookies of domain.com when I needed to delete the cookies of www.domain.com.

That is annoying.