Results 1 to 2 of 2
  1. #1
    alfonz19 is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default session management ON CLIENT SIDE.

    Well, I have to say, that my question is NOT directly bounded with servlet, but I do not know where to put it else.

    There are lots of examples how to deal with session management ON SERVER SIDE. No problem with that. But how to do it, effectively, on client side? By "client side" I do not mean presentation layer (which is often generated on server via servlets etc), but "HTTP client" side.

    When I create new HttpSession in servlet, then JSESSIONID cookie is set (or url is rewritten). The next request browser fire, will resend JSESSIONID back to server, identifying session. But what if it's not the browser, who's firing requests. What if I have to do it programatically? Is there a elegant way, how to deal with all those Set-Cookie headers and some session timeouts etc etc.? Or do I really need to handle it on my own by parsing headers etc? (I hope not. :) )

    thanks in advance for every hint, guidance, help, whatever.

  2. #2
    alfonz19 is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default for you:

    So I found the answer, sharing it with others who's looking for it.

    Apache commons solved this in HttpClient:
    here's quick intro
    A quick intro to HttpClient |

    and here's httpclient home:
    HttpClient - HttpClient Home

Similar Threads

  1. Servelt Session management
    By 01.chetan in forum Java Servlet
    Replies: 7
    Last Post: 03-31-2011, 12:09 PM
  2. Session Management in Struts
    By tushar_java in forum Advanced Java
    Replies: 0
    Last Post: 09-20-2010, 06:43 AM
  3. Replies: 1
    Last Post: 03-20-2010, 08:03 PM
  4. session management
    By rakesh_n_mehta in forum Web Frameworks
    Replies: 7
    Last Post: 09-22-2009, 08:02 PM
  5. session Management betwwen two application
    By sachin srivastava in forum New To Java
    Replies: 2
    Last Post: 01-21-2009, 06:12 PM

Tags for this Thread

Posting Permissions

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