AppScale/appscale — pull request #223 by shatterednirvana (2013-01-02 19:27:01+00:00)
Title: Deleting cookies via the same IP they are set with

Cookies were being created with the public IP address and deleted via the private IP address. If these IPs are the same, this is not an issue, but in VirtualBox and EC2 (and certain types of Euca deployments), this is not true and thus can the cookie won't be deleted. Remedied this problem by always deleting via the public IP address.

This fixes issue #79. Tested on VirtualBox. To test, spawn a one node deployment on VirtualBox (with more than one eth device) or EC2 and upload the guestbook application. Log in as the admin user and log out. Then post to the guestbook app. Before this fix, you would still see your posts under your admin user account. After this fix, you see the posts performed anonymously.