The cookies I get when I log in (after I get a success message) is like this. First, I do not understand why the domains for centralauth cookies is not having the language code (in this case 'en'). I tried manually changing it to
en.wikipedia.org but that did not help. Second, I am not sure whether I create new cookies myself and give the names as enwiki_User, enwiki_Token and enwiki_Session and then copy the domain and values.