I am sending form post variables thru HttpURLConnection class then i am not able to access existing session. How can i send variables as form post without breaking my existing session.

Jonathan Downey

Include the jsessionid with the value of session.getId() as a hidden parameter in the form you want to post.