I have started a small software company, and I am selling my applications on line via PayPal. I was having trouble handling the serial numbers to unlock the program Essentially, the user downloads the demo, and buys the key to unlock it.

What is the best / simplest way to do this?

Currently, I have PayPal send them to a page after the purchase that stores a session variable and redirects them to a new page. The new page...