Page MenuHomePhabricator

MediaWiki cookies are visible in the near web sites
Closed, DeclinedPublic

Description

Author: reg

Description:
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.


Version: 1.3.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz794

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 7:02 PM
bzimport set Reference to bz794.
bzimport added a subscriber: Unknown Object (MLST).

Yeah, that's how cookies work.

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

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:14 AM