Just found this on a Flickr help page:
I signed out from Flickr and hit the same problem. Here's how I resolved it with FireFox:
1. Go Settings > Privacy > Show Cookies
2. Type yahoo in the filter field, select all cookies and delete them
3. Type flickr in the filter field, select all cookies and delete them
4. Go to Flickr home page and sign in normally.