Weird cookie behavior

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaymoore_299
Forum Contributor
Posts: 128
Joined: Wed May 11, 2005 6:40 pm
Contact:

Weird cookie behavior

Post by jaymoore_299 »

When my main page loads I assign a cookie, "visitor_" to the surfer with the value of it being his http_referer. If it is empty I assign it the value noref. I have another page, read.php, that simply reads the value of this cookie "visitor_" .

When I load my page with the address domain.com, then proceed to load domain/read.php , I get a display of the text "noref" which is expected.

However, when I load my page as http://www.domain.com then go to http://www.domain.com/read.php I get no display at all. What is going on?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

tried echoing out the referrer have you?
Post Reply