Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cookie domain

Status
Not open for further replies.

cdfly

Programmer
Jun 16, 2010
68
US
Hello,
I'm trying to add a cookie and then rediect it the page to another machine. The cookie is only visible when the page is redirected to a site on the same machine.
As long as I set the cookie domain to "localhost" and pass the cookies to a page on the same machine I can read the cookie. If I set the domain to my network domain "network.com" and redirect the page to a different machine I'm unable to read the cookies. Is a cookie "domain" not the same as a network domain?

Thanks
 
I don't think you can write cookies for other domains. that would be a huge security hole. you could search the web for "cross site cookies" or "share cookies across domains". but i'm pretty sure this isn't possible.

Jason Meckley
Programmer

faq855-7190
faq732-7259
 
Thanks jmeckley,
I kinda thought that was the case but wanted to check to be sure.
I appreciate your help.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top