File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Problem while maintaining the Session Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Problem while maintaining the Session " Watch "Problem while maintaining the Session " New topic
Author

Problem while maintaining the Session

sachin warang
Greenhorn

Joined: May 04, 2006
Posts: 8
Hi friends,
I'm building chatServer in j2me using Servlet/Jsp.So while doing so i want to maintain a session.

For that i've invoke the following method,

HttpSession session = request.getSession(true);(in server)

But from that same MIDlet when i again send some text it again create new session id.
How could i resolve this issue as i just want to use same MIDlet when sending data to server?
Do i use diffrent Servlet/Jsp( at server side) when i going to send data after my session maintain?
But how could this new Servlet/Jsp( at server side) page get the same session id ?
Is there any other to resolve this ( want use only Session Tracking API)?

Regards,
Sachin Warang.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem while maintaining the Session
 
Similar Threads
Session lost due to....?
Use of Cookie
Create Session in Restful Service.
How to set JSESSIONID's maxAge?
Chatserver in j2me