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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2794, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 794 - MediaWiki cookies are visible in the near web sites
MediaWiki cookies are visible in the near web sites
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.3.x
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.


Navigation
Links