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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
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?

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

 

 

Contributor
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.
Contributor
Posts: 12
Registered: ‎04-16-2012
My Device: Bold 9780
My Carrier: Vodafone

Re: Cookies not sent to device sim from MDS