• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving item before the session ended  RSS feed

 
Sachin Kadian
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir
i am designing a website using servlets and jsp. This website is for a shopping mall. I want a feature in this that suppose a customer is purchasing some items. he put all the items in cart. but before he confirm the order,
his browser crashed or any other problem got occur means his session got ended. so want that before the session got ended, his all the items must be saved and next time when he come , there must be a message that do you want to keep these items or not?? how can i do so sir??

thanhx in advance.
 
Paul Clapham
Sheriff
Posts: 22819
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Save the items in a database, in such a way that the customer's ID code can be used to retrieve them. Every time the customer changes his/her cart, update those database entries to match.

If the customer makes a new connection, see if there are any such items. If there are, display that message and act on the reply from the customer.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!