[Mediawiki-l] Re: Re: Upgraded to 1.5.2 and am getting "You havecookiesdisabled"

Kevin Millecam kmillecam at webwiseone.com
Wed Nov 16 17:06:03 UTC 2005


Thanks Brion,

I was able to get the ISP, (OLM) to add an HTACCESS file that changed the 
local setting of session.auto_start to OFF but that didn't seem to help.

So I went to bugzilla to check out the patch you recommended (thank you very 
much). I'm afraid, however, I can't figure out how to apply the patch ... 
Any help would be appreciated (I've pasted the patch below):

Index: trunk/includes/Setup.php
===================================================================
--- trunk/includes/Setup.php	(wersja 6)
+++ trunk/includes/Setup.php	(kopia robocza)
@@ -117,10 +117,15 @@
 wfProfileOut( $fname.'-memcached' );
 wfProfileIn( $fname.'-SetupSession' );

-if ( $wgDBprefix ) {
+# If session.auto_start is there, we can't touch session name
+#
+
+if (!ini_get('session.auto_start')) {
+    if ( $wgDBprefix ) {
 	session_name( $wgDBname . '_' . $wgDBprefix . '_session' );
-} else {
+    } else {
 	session_name( $wgDBname . '_session' );
+    }
 }

 if( !$wgCommandLineMode && ( isset( $_COOKIE[session_name()] ) || isset( 
$_COOKIE[$wgDBname.'Token'] ) ) ) {

TIA,
Kevin

"Brion Vibber" <brion at pobox.com> wrote in 
message news:437ADACD.4020100 at pobox.com...
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
> 






More information about the MediaWiki-l mailing list