Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Cookies across sites
  
User name:
Password:
Reply:
 

UserPost
score_under
Posts: 10/10
If you want a cookie on multiple sites, do it the tracking cookie way:

have a www.siteone.com/cookie.htm in an iframe, style="width:0;height:0"
(the site will set the cookie, then put it into a hidden <input> with id="i")
sitetwo will call the script:
thecookie = iframe (id of iframe) . i . value;

Something like that anyway.
Ramsus
Posts: 156/162
In that case, the HTTP request to siteone.com/foo.php should just include the cookie from the same domain (siteone.com), since all files are all separate HTTP requests to begin with, even if they're images included in the HTML.
HyperLamer
Posts: 6372/8210
Originally posted by swdarcade
Cookies use the path which is www.thesite.com/ect. to set the cookie. If you made a cookie called mycookie at www.siteone.com and a cookie called mycookie at www.sitetwo.com they would be different cookies. Cookies also can be secure.

Er, that's not what I mean. What I mean is www.siteone.com sets a cookie. www.sitetwo.com links to www.siteone.com/foo.php as an image. foo.php needs to access the cookie from www.siteone.com, which it's on.
Book Keeper
Posts: 133/160
The closest thing you would get to that is Xkeepers Cookie Dump. As everyone else pointed out... no.
neotransotaku
Posts: 3788/4016
HTML processing is different from stuff like javascript...so no, it won't work
Cellar Dweller
Posts: 238/269
It depends on the settings of the web browser in use. Many browsers have an option to prevent images from servers other than the server the page is from from setting cookies. Cookie access likely follows the same rule.
swdarcade
Posts: 4/5
Cookies use the path which is www.thesite.com/ect. to set the cookie. If you made a cookie called mycookie at www.siteone.com and a cookie called mycookie at www.sitetwo.com they would be different cookies. Cookies also can be secure.
neotransotaku
Posts: 3764/4016
no...because of cross-domain issues: Cross Domain Explanation
HyperLamer
Posts: 6312/8210
Let's say some person goes to website X and it sets a cookie. Now on website Y, which is on a different server/doman/etc, there is an image linked to a PHP script on website X. Would the script on site X be able to read the cookie that it set earlier?
Acmlm's Board - I2 Archive - Programming - Cookies across sites


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.011 seconds.