fixed ajax cookie issue