Fix admin setcookie method