title: how to add session id using URLConnection
body: <p>I am trying to upload an image to a server using server url. For this i am using <code>java.net</code> api.
  After sending request , it is returning a response that shows session invalid. 
  I am getting the session id from that server but unable to add it.
  How can i add session id using <code>HttpURLConnection</code> while sending request to server.
  Is their any way to solve this?</p>