set $clean_cookie $http_cookie;
if ($http_cookie ~ ^(.*)Session_id=[^\;]*(.*)$) {
    set $clean_cookie '$1Session_id=<cut>$2';
}
