Last modified: 2010-05-15 15:29:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 794 - MediaWiki cookies are visible in the near web sites
MediaWiki cookies are visible in the near web sites
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-10-27 18:32 UTC by Design
Modified: 2010-05-15 15:29 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Design 2004-10-27 18:32:51 UTC
If I have a MediaWiki installed in $HTDOCS/mediawiki and an other website in
$HTDOCS/web, the PHP variable "$_COOKIE" in $HTDOCS/web/index.php show me all
MediaWiki cookies.

This problem may cause problems for the sites in the same web-server.

The solution is to set the path of cookies at the correct directory (now the
path is "/" and should be like "/mediawiki").

Sorry for the english. ^_^

Apache 4.3.8, PHP 1.3.1, MySQL 4.0.20, Linux Slackware 10/2.6.7.
Tested with Mozilla 1.7 and Konqueror 3.2.3.
Comment 1 Brion Vibber 2004-10-27 20:37:39 UTC
Yeah, that's how cookies work.

If you want to override the cookie path, set these variables:
$wgCookieDomain = '';
$wgCookiePath = '/';

Note You need to log in before you can comment on or make changes to this bug.