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.

Link to comment
https://forums.phpfreaks.com/topic/178363-need-to-write-a-cookie-with-a-url-var/
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?

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.