• Post Reply Bookmark Topic Watch Topic
  • New Topic

doPost and session tracking  RSS feed

 
Lakshmi Manikantan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing a client-server application, but I am stuck half way through. There is a series of Post operations, I am able to track it the first 3 times, but when it comes to the last Post operation, i Lose the session, HttpSession session= req.getSession(true) is returning totally new session. I tried to send the session via res.encodeURL() but it is not rewriting the URL either. Can anyone tell me what the problem could be. Is it something like...the session kills itself after 4 post operations...i know it sounds funny, but i am unable to find a good reason!!!
thanks,
Lakshmi
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lakshmi,
When you say "client-server application" do you mean that you have a Java client communicating with a servlet? Or are you just building HTML pages with Servlets or JSP's?
Kyle

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!