Fixed socket cookie sending