Hi,
for anyone who has the same problem, this helped me:
// use secure cookie for login
function fix_secure_signon_cookie_filter($secure_cookie){
if(is_ssl()) return true;
return $secure_cookie;
}
add_filter( 'secure_signon_cookie', 'fix_secure_signon_cookie_filter' );
Add it to your functions.php file