I hope someone can help me put with a bit a problem I have hanging around.
Let me explain how it all happened...
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.
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.
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".
All help is very appreciated...