# Turning off cookies for RESTful service connected to Mule

**URL:** <https://www.ruby-forum.com/t/turning-off-cookies-for-restful-service-connected-to-mule/148791>\
**Category:** Rails\
**Created:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/turning-off-cookies-for-restful-service-connected-to-mule/148791 "2008-09-17T05:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Peterson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@Kevin\_Peterson](https://www.ruby-forum.com/u/Kevin_Peterson)\
**Post date:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/turning-off-cookies-for-restful-service-connected-to-mule/148791/1 "2008-09-17T05:33:16Z")

</div>

I’m trying to get Rails 2.1 to talk to Mule 2.0. Mule is complaining  
“Invalid cookie state: domain not specified”. I think I can fix this  
by telling Rails not to use cookies (I don’t need any session  
information). But I don’t know how to turn off cookies. I’ve tried  
session :disabled =\> true and session :off, but these don’t fix the  
problem.

More details:  
I have a Metrics controller and model created using scaffolding.  
I have used map.resources :metrics.  
Mule is doing a post to /metrics.xml using Mule’s http:rest-service-  
component.  
(I’m not currently using the data returned, but may in the future)

Now, I know the problem might actually be on the Java side in  
httpclient, but I can’t find any clear explanation of whether  
disabling sessions will turn off all cookies (at least, all cookies  
that would be set by scaffolding generated code). How do I turn off  
cookies?

Thanks,  
Kevin Peterson
