Commit ba1e1ab6 authored by xurizaemon's avatar xurizaemon

CRM-17212: Use pantheon detection to switch file session to storage

parent 2af2cd60
......@@ -31,7 +31,9 @@
* $Id$
*/
ini_set('session.save_handler', 'files');
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
require_once '../civicrm.config.php';
......
......@@ -31,7 +31,7 @@
* $Id$
*/
if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
......
......@@ -31,7 +31,7 @@
* $Id$
*/
if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
......
......@@ -10,7 +10,7 @@
* in creating this payment processor module
*/
if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
......
......@@ -28,7 +28,7 @@
require_once '../civicrm.config.php';
$config = CRM_Core_Config::singleton();
if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
......
......@@ -33,7 +33,7 @@ if (phpversion() == "5.2.2" &&
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input');
}
if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) {
if (defined('PANTHEON_ENVIRONMENT')) {
ini_set('session.save_handler', 'files');
}
session_start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment