|
Posted by Jerry Stuckle on 03/05/07 23:00
paul wrote:
> In article <1173022525.228492.298190@p10g2000cwp.googlegroups.com>,
> myahact@yahoo.ca says...
>> because cookie is different for
>> http://www.mysite.com and http://mysite.com
>>
>
> It shouldn't be it's the same domain just addressed differently.
> If PHP does that it's a bug that should be reported as critical.
>
>
> Paul
> --------------------
> "It's better to burn out, than to fade away."
> Highlander.
Paul,
It's not PHP. It's how the browser and HTTP protocol work.
www.example.com is not the same as example.com. It may or may not be on
the same server. And if it were on a different server, there could be a
security exposure.
So the browser doesn't send a cookie stored by example.com to
www.example.com (or vice versa). There is nothing special about the www
identifier other than it is a convention.
The same would be true if you had xyz.example.com or
thisisanothersubdomain.example.com.
P.S. When using example url's, use example.com, example.org, etc.
That's what they were set up for.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|