kde.org's locale cookie

Chris Howells howells at kde.org
Sat Apr 12 14:13:47 UTC 2003

Hash: SHA1


On Saturday 12 April 2003 13:23, Jonathan Wakely wrote:
> On Fri, Apr 11, 2003 at 09:07:57PM +0100, Chris Howells wrote:
> > On Friday 11 April 2003 09:40, Jonathan Wakely wrote:
> > > I've just noticed that kde.org sets a cookie named "locale" (which has
> > > the value "en" for me). The cookie is never sent back to the site
> > > because the path is set to "/.kde.org" - which never matches.
> > > Because the server never gets the cookie back it keeps setting it again
> > > on every request, but not getting it back, and setting it ...
> >
> > What browser is this with?
> All browsers. The Set-Cookie header is wrong, it makes no difference

Just wondering as when I wrote the PHP code to set the cookie I have tested it 
with Konquer 3.1 and it seemed to work correctly. I must admit that I have 
little experience with cookies.

> whether I use Mozilla 1.3, Konqueror 3.0.0 or do an HTTP request by
> hand, the header comes back as:
> Set-Cookie: locale=en; expires=Sun, 11-Apr-04 11:22:02 GMT; path=/.kde.org
> I assume that it should be "path=/; domain=.kde.org" but the "; domain="
> fragment is missing.

The bit of PHP code that is used is:

setcookie('locale', $site_locale, time()+31536000, '/', '.kde.org');

I wonder if changing the last parameter to the function to 'kde.org' would 

Thanks very much for the reply.

- -- 
Cheers, Chris Howells -- chris at chrishowells.co.uk, howells at kde.org
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)


More information about the kde-www mailing list