Matthew
Matthew

Reputation: 4607

ASP.NET - Generating a Web Page based on Dynamic Content

Let me explain the scenario that I want to recreate. I have coded a server application that acts as a middleman between online merchants and their customers.

Basically, the idea is that customers go to buy products on the merchant's website, then the merchant sends the purchase description to the server along with a digital signature. The server then validates the details and sends a URL to the online merchant. The online merchant should then redirect the customer to this URL.

Now, my question is, I want the page to where the user is redirected to contain some data in order to help me identify the particular transaction in question. More specifically, I want to keep track of the vendor_username (the username with which the online merchant registered on the server) and the transaction_id. Now this would be simply achieved using Sessions if it was my website from where the customers are redirected instead of a third party.

I thought of passing the vendor_username and transaction_id in the URL to the online merchant as a query string, however I know that the query string can be easily edited from the address bar and as such is not an option. How can I implement it please? Sorry for the long description but I wanted to explain my situation in detail so that you could understand what I want. Thank you :)

Upvotes: 2

Views: 208

Answers (1)

Oxymoron
Oxymoron

Reputation: 1452

Possibly using a WCF service and tieing the transactions to something like GUIDs? I'm suggesting an N-Teir architecture model, more can be found here: http://www.codeproject.com/Articles/430014/N-Tier-Architecture-and-Tips

This is how we accomplished a similar task in a previous project of mine. This might be an interesting read.

Hope my answer helps get you on the right track for your solution!

Upvotes: 1

Related Questions