Jump to content

trying to get cookie info from another location


Mattyspatty

Recommended Posts

im struggling on something im trying to do with a cookie and a PHP generated image.

the user visits a page, they have cookie data and i want the image to be able to read the cookie data. so far the image can show the IP through the REMOTE_ADDR thingybob :P.


check it out here.
[url=http://mattyspatty.com/image.php]mattyspatty.com/image.php[/url]
[url=http://mattyspatty.com/counter.php?id=mattyspatty&a=image]http://mattyspatty.com/counter.php?id=mattyspatty&a=image[/url]

these identical, because im using mod_rewrite. perhaps this is a problem?

on my image creation page(counter.php), the cookie "ME" is checked for existance, if it DOES NOT exist then ME is set to "not logged in".  on the image.php page, i have set "ME" to "mattyspatty" but it is not passing through. 


i hope this is detailed enough for some feedback! im very tired and this problem is really irritating me!
[quote=mattyspatty]the user visits a page, they have cookie data and i want the image to be able to read the cookie data[/quote]

the image is generated on counter.php. and the page image.php shows the image (yes i realise that i should have done it the other way round now!)
i want the image on counter.php to be able to collect the cookie info from image.php

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.