update check_cookie in project_slim