BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 02-17-2009, 04:41 AM   #1 (permalink)
New Member
Join Date: Feb 2009
Model: 8700
Carrier: Vodafone
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Post Maintain Session/Cookie in my J2ME blackBerry App

Please Login to Remove!

i am developing a blackberry app in J2ME, which is pointing to web service written in dot net.

we have session state enabled in the webservice in dotnet.

i developed an application which for BB which was consuming this webservice and everything seemed to work fine ( ie even session seemed to work) while i used to run the application from the JDE device simulator.

but once i ported the same on the device, the BB app was not able to maintain the session from device

i am using ksoap to consume the web service from my BB app. cannot use jsr172 or other methods as most of the target devices are on JDE 4.2

can anybody plz help me on how to fix the issue.

i think there is issue in creation of cookies on device, but not sure. does anybody have any idea.
Old 08-16-2009, 08:37 PM   #2 (permalink)
Thumbs Must Hurt
Join Date: Oct 2008
Model: 8800
Carrier: Globe
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts

hi there,

i am having the same problem as you, and i was wondering if you were already able to solve this issue?

i read in this article that you can enable cookies using the setRequestProperty of the HttpConnection. I haven't really tried it though since i am using JSR 172. Do you know if i can enable cookies on JSR 172?

Last edited by jacytan : 08-16-2009 at 08:39 PM.
Old 11-29-2009, 08:13 AM   #3 (permalink)
New Member
Join Date: Oct 2009
Model: 7100T
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts

I am using DB sessions maintained by passing a key (GUID in world) down and looking up values in the DB based on that key. I think that would work for you, though I guess the ideal thing would be for sessions to just work the way they usually do. Hope this helps anyway.

Pete Tracey
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

irfi830g  picture2SC5302 C5302
2SC5302 C5302 pictureTAS5122
TAS5122 pictureSTR-Z2589 STRZ2589
STR-Z2589  STRZ2589 pictureNJM2234M JRC
NJM2234M   JRC picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.