how can i write cookie with from one domain to another domain.
i want to set cookie with its domain name(this file is on server) on client's machine.
can i write cookie with from one domain to another domain
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
I dont get what you mean. setcookie() sets a cookie. You can specifiy the domain name in that, if that's what you are referring to. Cookies are set for the browser itself... upon viewing the page that sets the cookie.
http://www.php.net/setcookie/
http://www.php.net/setcookie/
Huh??(this file is on server)
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Well if I'm not misunderstanding you ...
Use an <img src="http://yourserver.com/cooksetter.php?client=1234" width=0 height=0> you can even pass variables. User could always reject the cookie and rejection might even be automatic. Don't forget to return an image.
Use an <img src="http://yourserver.com/cooksetter.php?client=1234" width=0 height=0> you can even pass variables. User could always reject the cookie and rejection might even be automatic. Don't forget to return an image.