Hi,
I think the "tapestry" way is to us a "Visit" object rather than the session 
directly.

hth,

Mark


-----Original Message-----
From: Izak Wessels [mailto:[EMAIL PROTECTED]
Sent: Tue 2/7/2006 7:33 AM
To: [email protected]
Subject: How to clear the objects contained in the user's session
 
Hello,

In my application I am saving an "Order" into the user's session. An order
consists of an
"OrderCart" which contains a bunch of "OrderLineItem" objects. Now when the
user creates
a new order, a new "Order" object is being generated and saved as such in
the database,
but as soon as I add items to the "OrderCart" , then the "OrderItems" from
the previous order are still in the users session.

So basically, I need to clear my "OrderCart" so that when a new order is
being created, that it keeps the correct "OrderLineItems" associated with
the corresponding order.

Just a side note : In the "Managing Server Side State" on the Tapestry home
page, they
talk about setting the page to "Pristine State". Does that apply to my
situation?

Thanks,

-- Izak

Reply via email to