Jump to content

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