11-05-2010 03:40 PM - edited 11-05-2010 04:16 PM
I'm not able to see any cookies sent from a server when inspecting the headers in my processConnection() method.
In the MDS simulator, I can see the cookies "Received from Server," but they're not present in the headers that then get sent to the device. I assume this is an issue with the MDS handling the cookies, instead of allowing the device to handle them. I've verified this line in my rimpublic.property file (located in the JDE directory as described in http://supportforums.blackberry.com/t5/Java-Develo
application.handler.http.CookieSupport = false
...but I suspect that it's not getting picked up correctly. (If I also set application.handler.http.logging to false, I still see the HTTP headers logged from the MDS sim).
I'm using the JDE 4.3.0, and I don't have the standalone MDS sim installed. App is built with JRE 4.5.0, and running in the 8300 sim. Is there anything else I need to do to get cookies on the device from a server? Or any idea why my settings in rimpublic.property appear to be ignored?
11-06-2010 12:02 AM
The MDS simualtor emulates a BES-connected device environment. When you are connecting via BES, the BES servers will handle your session cookies server-side.
Is your app targeting BES? If so, is there a specific reason why you want to handle the cookies from the application?
If you are not specifically targeting BES, then you can shut down MDS and add ";deviceside=true" to your URL. This will emulate a carrier APN connection, and you will then see the cookies (and you will have to manage them in your app).