Hello,
With different server name, it's "relative" easy.
You can test the server name in config.phpo and set the detabase according to the servername.
For example:
$thishost=$_SERVER['HTTP_HOST'];
if($thishost=="localhost"){
$connectionString='mysql:host=localhost;port=3306;dbname=ls_localhost;'
}else{
$connectionString='mysql:host=localhost;port=3306;dbname=ls_web;'
}
And change the array with:
'components' => array(
'db' => array(
'connectionString' => $connectionString,
Here, LS use is own session_name, think it's difficult to tak session var from another session before using session of LimeSurvey.
Maybe another idea is to have symbolic link for limesurvey directory and test the dirname of config.php to set the $connectionString.
Denis