Here's one possible solution:
Serialize the shopping cart to a database or disk file each time it changes.
Encode the links between sites with a 'key' parameter that tells the other
site that you are 'shopping around'.
The key would contain a (perhaps not _the_) session id used in the
serialization in step one along with a 'site id' to identify the site that
is current shopped at.
The second site, when it gets a request with a key, would post a query to a
servlet on the first site, including the session id from the key in the
query.
The servlet on the first site would retrieve the cart from the database and
send a response back indicating the cart's contents (perhaps an XML
response, like a mini version of SOAP).
There are all kinds of issues with this that you'll have to consider.
You'll have to have a system of authorizing requests to your communication
servlets so not just anyone can post to them and get responses. You'll have
to have some way of synchronizing databases between sites so that shopping
cart information is meaningful between sites, etc.
Donald
----- Original Message -----
From: "Maureen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 7:39 AM
Subject: Fw: Session management question...
>
>
> Okay, no answers. Let me clarify my question, then:
>
> I have three websites that are set up for consumer ecommerce. I log on to
> one to obtain a session from a browser, then I decide I want to shop
around
> on the other two sites. Each website has a different web server. I come
> back to the first site...my session is gone.
>
> How can I work around this problem? Other than cookies? Why can't I have
> one shopping basket for my three sister sites while using one session
> object?
>
> Can I use JSP/Java to work around this problem?
>
> Maureen
>
>
> beware the fish in the sea...
> www.sharkfishcity.com
>
>
> ----- Original Message -----
> From: Maureen <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 29, 2000 7:54 PM
> Subject: Session management question...
>
>
> > If a user accesses a website and creates a session, then follows a link
> from
> > my site to a sister site, can I maintain the session from server to
server
> > using JSP? If so, how?
> >
> > TIA
> >
> > Maureen
> >
> >
> >
> >
> > beware the fish in the sea...
> > www.sharkfishcity.com
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets