-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Jacob Robert Wilkins wrote:

>
> Pass the session ID to the secure server. You get the session ID by calling
> HttpSession.getId(). Then, on the secure server, read the session ID from
> the query string and we'll assume its stored in a String called 'id', and
> then do something like this:
>
> HttpSession session = req.getSession(true).getSessionContext().getSession(id);
>
> Warning: I've never tested that. Let me know if it works.
>

This approach may well work under Apache JServ 1.0 (which is based on the 2.0 servlet 
API).  However, it is guaranteed to fail once you
move to the 2.1 or 2.2 servlet API because HttpSessionContext, along with other things 
like getServlet, has been deprecated and the
associated functionality removed.

You are best off arranging some application-specific way to share information between 
the two virtual host environments, rather than
trying to rely on a servlet API feature that has built in obsolescence.

Craig McClanahan




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to