Remove SID for cookies, remove debug code