Yes, i also faced this problem, what i did was if file size was > 100kb then i delete cookies and bot will check if cookies are not present then it will call login function and new cookies file will be saved which will be less than 100 kb.
There should not be any problems.
Load profile with gmail, than simply open new
tab and navigate to other site, Then just go back
to TAB where gmail is and confirm incoming mail.