Ma non è interessante il mio quesito oppure nessuno mi sa dire niente?
Scusate.. leggo discussioni aperte e molto dibattute su argomenti che non hanno niente a che fare con lo sviluppo.. in questo caso invece, che bisogna smanettare col codice, nessuno si degna di rispondermi. Non credo che nessuno abbia avuto il mio problema.
Cmq ho cambiato questo:
function sessionCookieName() {
global $mainframe, $mosConfig_live_site;
/* if( substr( $mosConfig_live_site, 0, 7 ) == 'http://' ) {
$hash = md5( 'site' . substr( $mosConfig_live_site, 7 ) );
} elseif( substr( $mosConfig_live_site, 0, 8 ) == 'https://' ) {
$hash = md5( 'site' . substr( $mosConfig_live_site, 8 ) );
} else {
$hash = md5( 'site' . $mainframe->getCfg( 'live_site' ) );
}*/
$hash = md5('site'.'
www.miodominio.it');
return $hash;
}
function sessionCookieValue( $id=null ) {
global $mainframe;
$type = $mainframe->getCfg( 'session_type' );
$browser = @$_SERVER['HTTP_USER_AGENT'];
switch ($type) {
case 2:
$value = md5( $id . $_SERVER['REMOTE_ADDR'] );
break;
case 1:
$remote_addr = explode('.',$_SERVER['REMOTE_ADDR']);
$ip = $remote_addr[0] .'.'. $remote_addr[1] .'.'. $remote_addr[2];
$value = mosHash( $id . $ip . $browser );
break;
default:
$ip = $_SERVER['REMOTE_ADDR'];
$value = mosHash( $id . $ip . $browser );
break;
}
return $value;
}