You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "N.Rajesh Babu" <ra...@iitg.ernet.in> on 2000/12/12 09:36:44 UTC

problem

Iam working with servlets in my thesis and i have a serious problem. I
want two servlets to open a http session, and keep track of the session.
But
they do not do it. I am sending cookies, even then the servlet at the
other
webserver starts a new session on each request.
how do i do.

--
  ____________________________________________________________________
  |                                         |Hostel address:-         |
  | N.Rajesh Babu                           |  room no 111,           |
  | M.Tech , Dept of cse                    |  manas hostel,          |
  | Indian Institute of Technology Guwahati |  IIT Guwahati,          |
  |  Guwahati , ASSAM                       |  North Guwahati,        |
  |                                         |  Guwahati, Assam        |
  | ph :- home   |  0091-8623-41013         |  India                  |
  |       hostel |  0091-361-790124         |                         |
  | e-mail:- raj@iitg.ernet.in              |                         |
  |          barishbabu@yahoo.com           |                         |
  |          n_rajeshbabu@mailcity.com      |                         |
  |          n_rajeshbabu@hotmail.com       |                         |
  |_________________________________________|_________________________|



Re: problem

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Sessions only work within a single web application on a single server.  If the
other servlet is on a different server, or a different application on the same
server, you will not be able to use sessions to share information between your
servlets.

Craig McClanahan


"N.Rajesh Babu" wrote:

> Iam working with servlets in my thesis and i have a serious problem. I want
> two servlets to open a http session, and keep track of the session. But
> they do not do it. I am sending cookies, even then the servlet at the other
> webserver starts a new session on each request.
> how do i do.
>
> --
>   ____________________________________________________________________
>   |                                         |Hostel address:-         |
>   | N.Rajesh Babu                           |  room no 111,           |
>   | M.Tech , Dept of cse                    |  manas hostel,          |
>   | Indian Institute of Technology Guwahati |  IIT Guwahati,          |
>   |  Guwahati , ASSAM                       |  North Guwahati,        |
>   |                                         |  Guwahati, Assam        |
>   | ph :- home   |  0091-8623-41013         |  India                  |
>   |       hostel |  0091-361-790124         |                         |
>   | e-mail:- raj@iitg.ernet.in              |                         |
>   |          barishbabu@yahoo.com           |                         |
>   |          n_rajeshbabu@mailcity.com      |                         |
>   |          n_rajeshbabu@hotmail.com       |                         |
>   |_________________________________________|_________________________|
>
>