I hope someone can help me put with a bit a problem I have hanging around.
Let me explain how it all happened...
[list=A][*]The Start: My client has a suscription driven site and he wants to know how his suscribers find his site. So he asked me to come out with the best solution.
[*]Solution: Since the tracking device has to be set to every page(at least the ones that are indexed in the robots), which are a lot since the site is a big one, I decided that the best to go was with javascript.
[*]Creation: By giving a solution now I had to create it and test it. I created a ".js" file, made some test pages and statrted the testing.
[*]Testing: I made a lot of testings since I only want the cookie to capture the FIRST arrival and not each. It worked well, I was able to capture the referrer and the retrieve it. But when I made my final test, I found a problem.
[*]The Problem: I thought that all was going great and I should be by bed in no time, but I found a "bug" in my code. The problem is that when you access the site via "www.mysite.com" it retrieves and writes a different cookie when you are in "mysite.com". Since I never really worked with cookies I didn't know how to solve this.[/list=A]
I made a lot of searches trough the net trying to find the solution, but, without success. I hope someone can help me out on this, on how to make and retrive the same cookie no matter if you are in "www.mysite.com" or "mysite.com".
I meant "standard" which you'd follow along allof your pages and domains.
say if you set a cookie name "cookie-www.mydomain.com"
the in all of the pages you should be able to get this cookie with the same name
Bookmarks