fixed the cookie authentication with lua5.2