Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - Cookies across sites | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 6312/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
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? | |||
neotransotaku Baby Mario 戻れたら、 誰も気が付く Level: 87 Posts: 3764/4016 EXP: 6220548 For next: 172226 Since: 03-15-04 From: Outside of Time/Space Since last post: 11 hours Last activity: 1 hour |
| ||
no...because of cross-domain issues: Cross Domain Explanation | |||
swdarcade Newcomer Level: 3 Posts: 4/5 EXP: 103 For next: 25 Since: 08-08-05 Since last post: 85 days Last activity: 71 days |
| ||
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. | |||
Cellar Dweller Flurry !!! Level: 27 Posts: 238/269 EXP: 107817 For next: 8342 Since: 03-15-04 From: Arkansas Since last post: 16 days Last activity: 34 min. |
| ||
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. | |||
neotransotaku Baby Mario 戻れたら、 誰も気が付く Level: 87 Posts: 3788/4016 EXP: 6220548 For next: 172226 Since: 03-15-04 From: Outside of Time/Space Since last post: 11 hours Last activity: 1 hour |
| ||
HTML processing is different from stuff like javascript...so no, it won't work | |||
Book Keeper ♫♫♫ n00blet ♫♫♫ Level: 21 Posts: 133/160 EXP: 49435 For next: 508 Since: 03-15-04 From: Wired Bookworm eat fresh! Since last post: 20 hours Last activity: 8 hours |
| ||
The closest thing you would get to that is Xkeepers Cookie Dump. As everyone else pointed out... no. | |||
HyperLamer <||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people Sesshomaru Tamaranian Level: 118 Posts: 6372/8210 EXP: 18171887 For next: 211027 Since: 03-15-04 From: Canada, w00t! LOL FAD Since last post: 2 hours Last activity: 2 hours |
| ||
Originally posted by swdarcade 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. |
|||
Ramsus Octoballoon Level: 19 Posts: 156/162 EXP: 34651 For next: 1126 Since: 01-24-05 From: United States Since last post: 39 days Last activity: 71 days |
| ||
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. |
|||
score_under Level: 4 Posts: 10/10 EXP: 271 For next: 8 Since: 08-20-05 Since last post: 71 days Last activity: 52 days |
| ||
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. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - Cookies across sites | | | |