CRM-17212: Use pantheon detection to switch file session to storage (2)
authorChris Burgess <chris@giantrobot.co.nz>
Sat, 12 Sep 2015 11:17:53 +0000 (23:17 +1200)
committerChris Burgess <chris@giantrobot.co.nz>
Sat, 12 Sep 2015 11:17:53 +0000 (23:17 +1200)
install/index.php
tools/extensions/org.civicrm.payment.googlecheckout/googleNotify.php

index 354fc51cd7e87a44d5a7990289a7d6c3f44256a2..88df4437131c2a97d33a7012926b2e78a7165fc7 100644 (file)
@@ -30,6 +30,9 @@ else {
 
 // set installation type - drupal
 if (!session_id()) {
+  if (defined('PANTHEON_ENVIRONMENT')) {
+    ini_set('session.save_handler', 'files');
+  }
   session_start();
 }
 
index 77da37fb5459c2c2b5833aa942a7488ed052d2d1..97b047130a40478e79ca6a494069b8aa844bd5e1 100644 (file)
@@ -33,6 +33,9 @@
  *
  */
 
+if (defined('PANTHEON_ENVIRONMENT')) {
+  ini_set('session.save_handler', 'files');
+}
 session_start();
 
 require_once '../../../civicrm.config.php';