tomouse
Technical User
- Aug 30, 2010
- 50
Hi,
My asp/VB.net website needs to send out emails which will contain links. The links will take the recipient to a specific order that is saved on the website. I can link to the page using Request.ServerVariables("SERVER_NAME") and Request.ServerVariables("URL"). And I could add a link to the order using querystring on the end of the link (e.g. ?orderID=1593). However, the user could then see the link and perhaps change orderID value to look at some other order. What is the best way of handling this?
The only thing I can think of is that each order has some hidden, randomised code saved in the DB. We include this in the querystring instead of the ID and this then links to the order. Is this the right approach? If there is a cleverer way then I'd love to hear it! Many thanks,
Tom
My asp/VB.net website needs to send out emails which will contain links. The links will take the recipient to a specific order that is saved on the website. I can link to the page using Request.ServerVariables("SERVER_NAME") and Request.ServerVariables("URL"). And I could add a link to the order using querystring on the end of the link (e.g. ?orderID=1593). However, the user could then see the link and perhaps change orderID value to look at some other order. What is the best way of handling this?
The only thing I can think of is that each order has some hidden, randomised code saved in the DB. We include this in the querystring instead of the ID and this then links to the order. Is this the right approach? If there is a cleverer way then I'd love to hear it! Many thanks,
Tom