Last modified: 2010-05-15 15:37:37 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 T5990, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3990 - When session.auto_start=true "cookie is disabled" error displayed on login
When session.auto_start=true "cookie is disabled" error displayed on login
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
1.5.x
PC All
: Normal normal (vote)
: ---
Assigned To: Brion Vibber
bugs.flock.com/show_bug.cgi?id=1531
:
: 5251 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-16 03:39 UTC by Zbigniew Braniecki
Modified: 2010-05-15 15:37 UTC (History)
2 users (show)

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


Attachments
patch against 1.5.2 (692 bytes, patch)
2005-11-16 03:40 UTC, Zbigniew Braniecki
Details

Description Zbigniew Braniecki 2005-11-16 03:39:22 UTC
When you have session.auto_start=true in php.ini and you login to MediaWiki it
assigns new name to session cookie, but PHP can't change the default one
(http://pl.php.net/manual/en/function.session-name.php#42747).
Despite of that, when later MediaWiki asks for session cookie name by
session_name() method, it returns the new (not the assigned) one.

It's also a PHP bug imho (it should return the really used name).
Comment 1 Zbigniew Braniecki 2005-11-16 03:40:08 UTC
Created attachment 1073 [details]
patch against 1.5.2

this patch adds a if() statement to check if MediaWiki can change the session
cookie name.
Comment 2 Brion Vibber 2006-01-15 08:05:46 UTC
Applied on CVS HEAD.
Comment 3 martin sarsale 2006-03-14 20:10:38 UTC
*** Bug 5251 has been marked as a duplicate of this bug. ***
Comment 4 Chris Wiegand 2006-03-24 19:12:00 UTC
In 1.5.7, you can instead replace line 128 of Setup.php with this:

if (!ini_get('session.auto_start')) { // Added in case sessions auto start in PHP
	session_name( $wgCookiePrefix . '_session' );
}

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


Navigation
Links