Reply to Re: sessions and domain names

Your name:

Reply:


Posted by Jerry Stuckle on 10/28/06 00:17

readmy@otherlips.com wrote:
> In article <6ak0h.38690$3l5.205@reader1.news.jippii.net>,
> spam@outolempi.net says...
>
>>Sessions are per domain. For www.mydomain.com there is one session, and for
>>mydomain.com there is anothe
>>
>
>
> A session is supposed to be a session with a particular host.
>
> Actually PHP uses host names for sessions if you look in PHPSESSID but it
> puts the domain name in by mistake. Hence his problem.
>
> Now that all "domains" are being registered both with AND without the
> particular service name (WWW FTP etc) - IE as host names - this is going
> to be a big problem for PHP if it isn't sorted real soon.
>
> You can see historically why the bug hasn't mattered but things have
> changed in the domain registration business and now it matters a great
> deal.
>
> I'm suprised it hasn't been reported more generally. I've seen reports on
> ecommerce web sites about mysterious failures, I wouldn't be at all
> suprised if this wasn't connected.

example.com and www.example.com are, by definition, two different hosts.
The fact they resolve to the same physical server is immaterial. PHP
is 100% correct in its operation.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация