I have had this problem on three 2.6.2 upgrades over the last two days.
After some complicated db adjustments on the first two upgrades I now think that it seems that the 2.6.2 upgrade is not properly clearing cookies.
On the last upgrade tonight I again couldn’t login at first but it worked instantly after clearing the cookies related to the site url.