I need to implement a shopping cart in my app. Its only allowed for registered logged in users.
So a user logs in and may shop or do other stuff...so i need to maintain a user's session and a shopping cart session within that session.
And when user checks out ...he doesnt get logged off...i mean when shopping cart session gets invalidated....user session is still preserved!
The way I see it here, there is actually only one session. Inside that session, you may store information about the user and also the shopping cart information. When the user checks out, you can remove the shopping cart attribute from that session. And when the user logs out, you finally invalidate the session.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4