• Post Reply Bookmark Topic Watch Topic
  • New Topic

MIDlet and HTTP Session

 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a MIDlet which connects to different servlets via http. My midlet accepts the url and connects to it. However, whenever it makes a connection to a different servlet, it uses a new session. (I use the session.getID() to keep track of the midlet's current session).
Is there no way for my midlet to keep the same session while "browsing" between these servlets?
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use cookies to track sessions on all servlets from the same servlet container (same server). Check out an article I wrote on this subject:
Track wireless sessions with J2ME/MIDP
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!