User Menu
Keywords
|
Home > Talk > Install on localhost bug1.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); }
|