- Posts: 227
- Thank you received: 36
Ask the community, share ideas, and connect with other LimeSurvey users!
Redirect 301 /LS https://ls.example.org
It might be no longer an issue on LS. But when using subdomain you always have separate cookie sessions, with subdirectory there was one cookie session. You have to set a different cookie/session name in the limesurvey config to separate cookie/session.holch wrote: On my server I actually use both methods.
jelo wrote: It might be no longer an issue on LS. But when using subdomain you always have separate cookie sessions, with subdirectory there was one cookie session. You have to set a different cookie/session name in the limesurvey config to separate cookie/session.
jelo wrote: You have to set a different cookie/session name in the limesurvey config to separate cookie/session.
if (strpos($_SERVER['REQUEST_URI'], "subdomain1") !== false){ return array( 'components' => array( 'db' => array( 'connectionString' => 'mysql:host=localhost;port=3306;dbname=sd1;', 'emulatePrepare' => true, 'username' => 'XXX', 'password' => '123', 'charset' => 'utf8', 'tablePrefix' => 'lime_', /* . . . . . . . . . . . . . . . . . . */ } else { return array( 'components' => array( 'db' => array( 'connectionString' => 'mysql:host=localhost;port=3306;dbname=db2;', 'emulatePrepare' => true, 'username' => 'XXX', 'password' => '123', 'charset' => 'utf8', 'tablePrefix' => 'lime_', /* . . . . . . . . . . . . . . . . . . */