Topic: Managing Inventory Smartly
I have a straight-forward app that allows users to add products to a cart. Because each item is one-of-a-kind, it gets put into a kind of holding zone when a user adds it to her cart. If the user goes through with the purchase, the item is removed from the (public side of the) site. If she cancels the purchase, the item is returned to the store.
My concern is when she closes her browser without completing the purchase or canceling it. Is there a smart way to clear her session after a certain amount of time and process the logic to return the item to the store?