LegalAlien
Perch
Yash: I've discovered the reason for a problem that I'm having with my shopping cart scripts concerning sessions. I wondered if you could help...
In a nutshell, it seems that different sessions are generated when using my domain name with and without the "www".
For example, say someone went to www.mysite.com and added something to their shopping basket from a featured item on the homepage (which took them to www.mysite.com/cart.asp). If they now went to mysite.com/cart.asp (without the www), a completely different session would be started, and now the shopping basket would appear empty. I originally thought the sessions were dropping, but in fact, there is now two different sessions active.
Is this normal?
I guess you might ask why anyone would do this. Well, I discovered this as I had set the url of all internal links without the www. I now intend to add the www to prevent this happening, but my ASP programmer informs me that this shouldn't happen anyhow. The problem will still occur when, for example, someone clicks through from a search engine listing that has the alternative link, if you get what I'm saying... Hope that makes sense...
Is there a change to the server configuration that can solve this problem?
In a nutshell, it seems that different sessions are generated when using my domain name with and without the "www".
For example, say someone went to www.mysite.com and added something to their shopping basket from a featured item on the homepage (which took them to www.mysite.com/cart.asp). If they now went to mysite.com/cart.asp (without the www), a completely different session would be started, and now the shopping basket would appear empty. I originally thought the sessions were dropping, but in fact, there is now two different sessions active.
Is this normal?
I guess you might ask why anyone would do this. Well, I discovered this as I had set the url of all internal links without the www. I now intend to add the www to prevent this happening, but my ASP programmer informs me that this shouldn't happen anyhow. The problem will still occur when, for example, someone clicks through from a search engine listing that has the alternative link, if you get what I'm saying... Hope that makes sense...
Is there a change to the server configuration that can solve this problem?