fixed issue with inner callbacks in mirrors() and login()
Making sure that every handle that needs the sid cookie has it.