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.

    ** This space for rent **

Similar Threads

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