Merhaba ben sayfamda bir çerez bitki bir web uygulaması var. Ardından kullanıcı başka bir sayfaya gider ve bu sayfada bu gibi bir komut dosyası sayfamı çağırır:
<script type="text/javascript" src="http://domain.com/page.aspx?id=6" ></script>
Neden olmasın, benim sayfa çağırdığında ama çerez erişmek olamaz? ve nasıl etrafında çalışmak?
Please note that this question is in relation to: http://stackoverflow.com/questions/2660427/javascript-and-webshop-tracking-affiliate-across-websites-how-to-do
Edit The "other" page is on a entirely different domain. My code is in ASP.NET, but as far as i know its the same for all languages:
Çerez (Default.aspx) Dikim:
protected void Page_Load(object sender, EventArgs e)
{
Response.Cookies["affiliate"].Value = "InnovationPartner";
Response.Cookies["affiliate"].Expires = DateTime.Now.AddDays(7);
...
}
(Gidiş-dönüş sonra) çerez (Collect.aspx) alınıyor:
protected void Page_Load(object sender, EventArgs e)
{
bool affiliate = Request.Cookies["affiliate"] != null ? true : false;
...
}