php+cookies problem

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
seitan
Forum Newbie
Posts: 3
Joined: Wed May 07, 2003 2:30 am

php+cookies problem

Post by seitan »

Hello,
I have such a problem:
im trying to set cookie using php script:
setcookie($x, $y, time() + 3600, "/" );
everything works fine, if I adress this script via explorer, typing web servers IP address.
But if I use domain redirect (for example http://something.tk), cookie does not set.
Where is the problem, and is there any wai to sove it?
Post Reply