1

I want to know if this is do able , I make a HttpWebRequest in my asp.net site and load a certain page and store cookies in cookie container and also add cookies to the current browser from where i opened the site.

So that after this step when the user is navigated to that site (third party site) it shows the necessary info by looking at the cookies saved instead of taking it to home page.

is this valid?

1 Answer 1

1

That is not possible because for security reasons you cannot set cookies for a different domain. You could be setting them for Amazon and manipulate their shopping cart. That is clearly something that must be impossible to do.

Sign up to request clarification or add additional context in comments.

11 Comments

Is there any way around this how can i implement this, as is this was a desktop application i simply sent the post request with cookies and i get the html of a booking page(supposing i am buying a car). So how can this be replicated in case of asp.net and when i actually want the user to see the booking page (navigate to it).
You could proxy the booking site completely so that your user never leaves your domain. Then, those cookies would stay on your domain which you control. You have to forward them to the booking site with each request.
Can you please explain this a bit more , some example link etc.
I understand you want to show the user the car booking page but under your own domain, right? And potentially change the contents of the page.
Nope no change in content, i want to show them the result from various site and when they click a car i want them to be redirect to the original site booking page.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.