Using end of session to run code

B

Bill

I have a session ID that I place in a shopping cart. Sometimes the
customers fill the cart, but then click out of it before they order what
is in the cart. This tends to fill the cart up with garbage, and I need
to clear it out after they click out of the session.

I'd like to run some code that will delete the cart contents where
sessionid=sessionid when the session ends. I'm sure there is some sort
of command to run on session end, or something like that. And perhaps,
this goes on the page called Global.asa? Is that it? I've heard of this
a few years ago, but have never needed to use it.

Can someone help?

Thanks,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top