I'm writing an e-commerce application. I'm trying to minimize the amount of
times we go against the database so we are keeping the cart and the order in
memory, commiting the order only when the user has confirmed. I want the
shopping cart to persist, however. In looking at Jason Hunter's book, I
found the example code of how to manually invalidate stale sessions. All I
have to do there is pull the cart out of the session, call save on it, and
then destroy the whole thing. My question is how do I ensure the fact that
this invalidation routine gets called frequently enough that there aren't
going to be any cases of the cart falling through the cracks.

R

___________________________________________________________________________
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

Reply via email to