Quantcast
Viewing all articles
Browse latest Browse all 17529

Different databases for one limesurvey system? - by: jesovn

Hi, I'm actually developing an application that uses Limesurvey.

This application needs different databases, one for each "department".

I've created different LimeSurvey databases. For that, I modify the Surveys URL, adding a parameter to this URL. Looks like this:

localhost/proyect/limesurvey/index.php/s...dgnwt?departmentid=1

The "index.php" stores in SESSION the "departmentID", and then the "config.php" reads this SESSION variable to switch between different databases. It works for doing the surveys, and if I want to enter into the admin page it also works with this URL:

localhost/proyect/limesurvey/index.php/admin?departmentid=1

But with the remotecontrol2 it doesn't work. My application stores in SESSION the departmentID, but when I use the RemoteControl I can't get the sessionKey (there's an exception).

I'd like to know how I could configure the remotecontrol to switch between different databases like in the other use. Or if it is possible to send this parameter to the remotecontrol....

Please help, the only other solution is to have a limesurvey proyect for each department. I know that it isn't an usual use of limesurvey... but could be nice to modify Limesurvey to have this capability.

Thanks in advance! Best regards,
Jesus

Viewing all articles
Browse latest Browse all 17529

Trending Articles