Finally broke the loop ...
by wiping out the gmail cookies, turning cookies off inf Firefox and then trying to access GMail. GMail said that they needed cookies to work. I turned cookies back on and when I went back to GMail I was prompted to log in and could log in and out of all my accounts. It must have been some weird caching of the cookies even after I deleted them and closed the browser.