Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
bryfox
Posts: 15
Registered: ‎11-01-2010
My Device: Not Specified

Cookies not sent to device sim from MDS

[ Edited ]

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-Development/Enable-cookies-in-BrowserField/ta-p/445032):

 

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?

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Cookies not sent to device sim from MDS

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).

 

 

Please use plain text.
Contributor
rassin04
Posts: 12
Registered: ‎04-16-2012
My Device: Bold 9780
My Carrier: Vodafone

Re: Cookies not sent to device sim from MDS

But is there is any way to clear the cookies handled in bes servers?
eg:- On user selects clear the cookies from applications menu option.
Please use plain text.
Contributor
rassin04
Posts: 12
Registered: ‎04-16-2012
My Device: Bold 9780
My Carrier: Vodafone

Re: Cookies not sent to device sim from MDS

Please use plain text.