* @copyright Australian Consortium for Social and Political Research Incorporated (ACSPRI) 2013 * @package queXS * @subpackage user * @link http://www.acspri.org.au/ queXS was writen for ACSPRI * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * */ /** * Configuration file */ include_once(dirname(__FILE__)."/../config.inc.php"); /** * Database file */ include_once(dirname(__FILE__)."/../db.inc.php"); //get session name from DB // $sql = "SELECT stg_value FROM " . LIME_PREFIX . "settings_global WHERE stg_name = 'SessionName'"; session_name($db->GetOne($sql)); session_set_cookie_params(0,QUEXS_PATH); session_start(); //check if the session exists or loginID not set if (session_id() == "" || !isset($_SESSION['loginID'])) { //need to log in header('Location: ../include/limesurvey/admin/admin.php'); die(); }