posted 14 years ago
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?
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?
posted 14 years ago
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
Track wireless sessions with J2ME/MIDP
Seam Framework: http://www.amazon.com/exec/obidos/ASIN/0137129394/mobileenterpr-20/
Ringful: http://www.ringful.com/

Consider Paul's rocket mass heater. |