Jump to content

Need to write a cookie with a url var


leptoon

Recommended Posts

Not sure if its possible, but I need to write a cookie with a url.

 

So this would write 2232 as the cookie for ID.

 

http://www.example.com/redirect.php?ID=2232

 

Ultimately, I'm working on a pixel tracking script for an incentive website. If you can help, I'll be eternally grateful lol.

 

I would personally use a session.  However, if you want to manage cookies yourself then you want to use setcookie:  http://php.net/manual/en/function.setcookie.php

Link to comment
Share on other sites

Not sure if its possible, but I need to write a cookie with a url.

 

So this would write 2232 as the cookie for ID.

 

http://www.example.com/redirect.php?ID=2232

 

Ultimately, I'm working on a pixel tracking script for an incentive website. If you can help, I'll be eternally grateful lol.

 

so you want to store the url in the cookie?

 

No, I want to use the URL to create a cookie.

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.