Jump to content

Check cookie after a callback


trizocy

Recommended Posts

Hello there

 

I was wondering if anyone could help me with this problem

 

See

 

I running a site where people can log in, and everytime they log in, a cookie is set, based on their username.

 

so when a user complete a offer, my website send a link to a Network. (example: www.Network.com/offer=9384736)

 

When the Network has receive the link with the offer (offer=9384736) , then they will do a postback call to my website.

 

Example my site is www.mywebsite.com/PB.php/offer=9384736

 

 

Then my postback script will get the offer and check for the cookie when a postback call is made from the network to my script.

 

 

So what i want is when someone giving me a postback call, a script will check for the cookie ( the user who have complete a offer)

 

I was just think just to put this in echo $_COOKIE["user"];, but that dident work, because it was the network who called my postback.

 

 

So have anyone any idea how i can do this?

 

 

 

 

Would really appericate if someone could help me out

 

Thanks!

 

 

Link to comment
Share on other sites

I'm not sure why you want to give an external site access to your user's cookies. That doesn't seem right.

 

You should be giving user information server side so it is more reliable. Then you'll probably want to output some JSON or XML or something for the external site to scrape and get the necessary information.

Link to comment
Share on other sites

Hey scootstah

 

Thanks for answering and trying to help me ;)

 

See when a user complete a task on my site, it will send a link to a network i am in.

 

Lets say the link my site send is this: www.google.com/offer=73637/status=1

 

And when my network approval the link, my site send, it will call back and send the link to my postback

 

 

But the bad thing is that it miss the user

 

The link should be like this: www.google.com/offer=74637/status=1/user=scootstah

 

But the network dont support the user

 

 

So they said you could easliy do this with cookie and let the cookie check after they have send back the link to my site

The network would only scrape offer and status info :/

 

If you got any other ideas what i can do, please tell.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.