I assume both servers are under your adminstrative and programmatic control
so here are some ideas:
- Use the database to store the information and pass the secured server a
cookie, hidden field or URL argument with a key to the database record.
This trick is very popular in that "state" can persist for a few days if
needed.  The major disadvantage is that you need a scheduled job that will
clean up old transactions that were never completed.  One advantage to this
trick is that you are protected from the server going down and all the
in-memory stuff being lost.
- Use something like RMI or JMS to "push" the data to the other servers.
This trick has been popular for app. server vendors who give you session
replication or session level fail over.

Burr
[EMAIL PROTECTED]

----- Original Message -----
From: Donnell Hughes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 14, 2000 10:23 AM
Subject: Shopping Cart Apps/Sessions Across Multiple Servers


> Hi.
>
> I'm currently working on the checkout portion of a shopping cart
> application.  The shopping cart information is kept in a session.  When
the
> user wants to checkout, he will be redirected to a physically separate
> secure server to handle the input of account information.  I'm looking for
> suggestions on how to send the cart information to the secure server.  Is
> anyone utilizing such an architecture, or are you using one physical
machine
> with one instance of JRun and two webserver instances--one secure and one
> unsecure?
>
> Thanks.
>
>
===========================================================================
> 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

Reply via email to