I think, even though your servlet engine is the same, it is attached to
different web servers (HTTP/HTTPS). THis results in two different sessions
being created.
One way is to pass the session id from one server to the other on the URL,
once you do that then you can get the actual HttpSession instance. Then copy
the values from one session into another using something like:
public void copySession(HttpSession originalSession, HttpSession
targetSession)
{
String[] originalNames = originalSession.getValueNames();
Object currentObject = null;
for(int i = 0; i < originalNames.length; i++)
{
currentObject =
(Object)originalSession.getValue(originalNames[i]);
targetSession.putValue(originalNames[i],currentObject);
}
}
> We are using JSP and are encountering a problem, which shows up only
> while using the Netscape browser (with IE it works fine):
>
> In a secure (HTTPS) page, we create a Session. Then, we redirect (using
> sendRedirect()) to a non-secure (HTTP) page. When we try to get the
> Session in the non-secure page, we get null.
>
> For the record, we use IBM WebSphere and IIS.
>
> Thanks.
>
>
========================================
Mike Fontenot - Object Systems Architect
Polygon Network, Inc.
Golden, CO
========================================
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html