Results 1 to 2 of 2
  1. #1
    sakshi.13agg is offline Member
    Join Date
    Sep 2011
    Rep Power

    Default Get sessionid from HTTP request

    All my HTTP requests goes to a proxy application that I have created.
    The request contains various headers including Cookie as one of the header.

    I want to read session id from value of this header,but the problem is that I cannot search the hardcoded string "JSESSIONID" because different web servers use different names to store session ID.

    Can I assume that the first name-value pair of Cookie header is always sessionid?

    Thanks in advance!

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Get sessionid from HTTP request

    Is this a regular Java server?
    As in, servlets etc?
    If so then the HttpSession has the id.
    Please do not ask for code as refusal often offends.

Similar Threads

  1. HTTP Request without use of URL class
    By samaykrjain in forum New To Java
    Replies: 0
    Last Post: 08-30-2012, 07:36 AM
  2. http request
    By nobleman_james in forum Java Applets
    Replies: 14
    Last Post: 12-17-2010, 07:23 PM
  3. Http request via applet
    By hoda in forum Java Applets
    Replies: 0
    Last Post: 11-20-2010, 10:07 AM
  4. Http request
    By arthik_babu in forum Advanced Java
    Replies: 2
    Last Post: 06-29-2009, 12:27 PM
  5. [SOLVED] http request
    By Eranga in forum Advanced Java
    Replies: 30
    Last Post: 11-27-2008, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts