Genymotion and cookies&localStorage

Hey guys is there special way of setting up cookies for Genymotion?

I currently do this:

document.cookie = “username=” + username + “; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/”;
document.cookie = “password=” + password + “; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/”;

and then retrieve it using Angular’s $cookies.

It works in the browser, iPhone & xCode emulator, but not in Genymotion! Same for localStorage…

Any help?