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
PIN: N/A
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.
Offline  
Old 08-16-2009, 09:37 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Posts: 52
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi there,

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

http://www.it-innovations.ae/iit005/...T05_Sierra.pdf

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 09:39 PM.
Offline  
Old 11-29-2009, 08:13 AM   #3 (permalink)
New Member
 
Join Date: Oct 2009
Model: 7100T
PIN: N/A
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using DB sessions maintained by passing a key (GUID in asp.net 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
Offline  
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





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.