0

When I make a commercial website in ASP, I use the session to keep the items in shopping cart even the customer close the website (when they come back, all items still in their cart).

I am reading about Java EE, especially about stateless and stateful session beans. But when I read this example: http://docs.oracle.com/javaee/1.2.1/devguide/html/Session2.html#9905, it seems that a stateful session bean just separates each client, it doesn't keep the items in a shopping cart when I exit the client's application and come back again.

So is it true that the session bean in Java EE can create a shopping cart like a session in ASP?

4

0 回答 0