WikyBlog
Download

Home > Talk > Install on localhost bug

1.7RC1 I noticed I wasn't able to log in after successful installation. The following (dirty hack) seems to work: file: include/tool/session.php

function generateDomain(){
	$parts = explode('.',$_SERVER['HTTP_HOST']);
	if( count($parts) > 2 ){
		array_shift($parts); //just take off the first one
	}elseif( count($parts) < 2 && ($_SERVER['HTTP_HOST'] != 'localhost')){ //not enough parts, just use defaults
		return '';
	}
	$_COOKIE[g] = true;
 
	return  '.'.implode('.',$parts);
}

Yeah, sorry about that bug. I noticed it too shortly after releasing RC1. RC2 is out with a slightly different hack. Thanks for your help! --Josh
Last modified 01:19 Mon, 2 Jun 2008 by Main. Accessed 160 times What Links Here share Share Except where expressly noted, this work is licensed under a Creative Commons License.