enable cookie when login,not perfectly working,not with chrome locally