Results 1 to 2 of 2
- 01-13-2011, 06:53 PM #1
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
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.
- 01-15-2011, 03:57 PM #2
Member
- Join Date
- Jan 2011
- Posts
- 6
- Rep Power
- 0
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 | Java.net
and here's httpclient home:
HttpClient - HttpClient Home
Similar Threads
-
Servelt Session management
By 01.chetan in forum Java ServletReplies: 7Last Post: 03-31-2011, 11:09 AM -
Session Management in Struts
By tushar_java in forum Advanced JavaReplies: 0Last Post: 09-20-2010, 05:43 AM -
how to access Ms Access from client side to server side
By arunkumarinfo in forum JDBCReplies: 1Last Post: 03-20-2010, 07:03 PM -
session management
By rakesh_n_mehta in forum Web FrameworksReplies: 7Last Post: 09-22-2009, 07:02 PM -
session Management betwwen two application
By sachin srivastava in forum New To JavaReplies: 2Last Post: 01-21-2009, 05:12 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks