Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save a value into the table before IE is closed?

Status
Not open for further replies.

diem

Programmer
Jul 25, 2001
28
0
0
US
Hello everyone,

I'm working on an Online Ordering website. The customers can select any item and add to Shopping Cart. The process of ordering online is working ok if they end the order by checking out. However, if the customers close the IE before checking out (means the order is cancelled), then how do I clear the shopping cart? If they open IE window again, I need to able to know that the previous order is cancelled and empty the shopping cart. So, is there any way that I can set a flag in the table to keep track this before IE window is closed. Anyone who already has done this, please advise. Any help would be very appreciated . Thanks a lot.
 
Just keep a session variable with the items that are in the shopping cart, Once they close the browser the session is destroyed.




Session("CartBasket") = "itemID|quantity,ItemID|quantity" etc

www.vzio.com
star.gif
/ [wink]
 
Hi, thanks for the tip! It worked great. I appreciate your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top