lowercase cookie names when check

lowercase cookie names when check badargs