A client and I are building a system to track users based on the page by which they enter the site. The basic idea is if they land on index2.htm they have entered from an overture listing somewhere and we want to tag them as a 'no comission' customer and if they enter by any other page they are a 'comission customer'. So far the best idea we've come up with to hit them with a cookie and then pull the cookie during the order process so that we can determine what kind of sale it is.
That said what would be the pros and cons of using either js or perl to create the cookies. The product is a consumer level item that most people would purchase online from home during the evenings. The vast bulk of our users are ordering from the privacy of home.