Finally I found the problem, wordpress changed connect_sid to connect.sid so the cookie wasn't recognized.