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