[thelist] asp carts and sessions

Jason Cartwright mail at jasoncartwright.com
Thu May 16 07:55:07 CDT 2002


> 1.By creating a session, does this give you a unique id to
> use or do i have to call a function or something to generate one?

This is automatically generated by the server. Try Session.SessionID
http://www.w3schools.com/asp/prop_sessionid.asp

> 2.If the user never actually checks out, how can i remove
> the data from the db as this could build up after some time?
> (i cannnot access the server schedular to run a script each
> day to remove the data, which is what i would do)

You'll need to use the global.asa for this. Try purging the DB of a
user's info when Session_onend should do the job -
http://www.w3schools.com/asp/ev_sess_onend_onstart.asp

www.w3schools.com is my bible :)


Jason
www.jasoncartwright.com




More information about the thelist mailing list