print $query->redirect(-location=>"wherever",-cookie=>$cookie);