| | #1 |
| Mountain Man War Room Member Join Date: 2011 Location: Rockies
Posts: 57
Thanks: 11
Thanked 6 Times in 6 Posts
|
Hello, I'm hoping to pick the brain of someone who understands cookies. I'm curious if it's beyond the limitations of Cookie programming/creation for the cookie to tell me the website a visitor was at right before coming to my site. I'm not talking about what site referred them, but rather simply the site visited before mine. If you know how to do this and do freelance please lmk. Thank you |
| Often the difference between a successful person and a failure is not one has better abilities or ideas, but the courage that one has to bet on one’s ideas, to take a calculated risk – and to act. -Andre Malraux | |
| |
| | #2 |
| Hardcore Programmer Join Date: 2011 Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
|
Unfortunately it's not possible... The only way to do stuff like that is to read HTTP_REFERER variable from HTTP headers and even then the information is many times missing or not correct. For example if the user comes to your site by clicking a banner ad or via javascript link using IE you won't get any usable referrer data about the website he/she was last visiting. I was once programming a tool which would've hugely benefited from that kind of feature so I did lots of digging and finally accepted that it just isn't possible. |
| |
| The Following User Says Thank You to Subsonic For This Useful Post: |
| | #3 | |
| Mountain Man War Room Member Join Date: 2011 Location: Rockies
Posts: 57
Thanks: 11
Thanked 6 Times in 6 Posts
|
I thought it was certainly possible because tracking of referring sites can be done... What if there was an index of recognized cookies that a script could pull from so that x% of the time it was accurate? | |
| Often the difference between a successful person and a failure is not one has better abilities or ideas, but the courage that one has to bet on one’s ideas, to take a calculated risk – and to act. -Andre Malraux | ||
| |
| | #4 |
| Hardcore Programmer Join Date: 2011 Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
|
It's still not possible because other domains can't access cookies set by 3rd party domains. It would be a security issue or a bug if it would be possible. Direct quote from one site because I can't post links yet: "If the domains don’t share a higher level domain (like foo.example.com and bar.example.com have the same second level domain example.com), there is – or better: there should be – no way of sharing cookies." Edit: Yes I know, it sucks! |
| |
| | #5 | |
| Mountain Man War Room Member Join Date: 2011 Location: Rockies
Posts: 57
Thanks: 11
Thanked 6 Times in 6 Posts
|
| |
| Often the difference between a successful person and a failure is not one has better abilities or ideas, but the courage that one has to bet on one’s ideas, to take a calculated risk – and to act. -Andre Malraux | ||
| |
| | #6 | |
| Hardcore Programmer Join Date: 2011 Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
|
| |
| |
| | #7 | |
| Mountain Man War Room Member Join Date: 2011 Location: Rockies
Posts: 57
Thanks: 11
Thanked 6 Times in 6 Posts
|
Either way thanks again for the discussion. | |
| Often the difference between a successful person and a failure is not one has better abilities or ideas, but the courage that one has to bet on one’s ideas, to take a calculated risk – and to act. -Andre Malraux | ||
| |
| | #8 | |
| Hardcore Programmer Join Date: 2011 Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
|
If the referrer url is something like... joeblow.com/xxxxxxx/xxxxxxxxxxxxx/xxx ..it will most likely be shown as joeblow.com because the analytics software doesn't recognize the site. The referer info only contains IP address of the user and the url he/she is coming from and sometimes it's empty or fake. By the way, analytics software use that IP address in referer field to define how many times a certain user has visited your page! | |
| |
| | #9 | |
| Mountain Man War Room Member Join Date: 2011 Location: Rockies
Posts: 57
Thanks: 11
Thanked 6 Times in 6 Posts
|
| |
| Often the difference between a successful person and a failure is not one has better abilities or ideas, but the courage that one has to bet on one’s ideas, to take a calculated risk – and to act. -Andre Malraux | ||
| |
| | #10 | |
| Hardcore Programmer Join Date: 2011 Location: North-Europe
Posts: 33
Thanks: 6
Thanked 9 Times in 7 Posts
|
You can get the exact page where the user came from. Those xxxxx could be for example /page-something/page-2.php
| |
| |
|
| Bookmarks |
| Tags |
| cookies, create, question |
| |