From e1e1960474412fe737ae3af10bfcfcc50316148a Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 12 Jun 2014 01:37:51 +0000 Subject: [PATCH] add cookie domain --- htdocs/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/index.php b/htdocs/index.php index d95aadf1..d7a9f228 100755 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -5,6 +5,7 @@ date_default_timezone_set('Asia/Shanghai'); // directory setup and class loading set_include_path('.' . PATH_SEPARATOR . '/var/www/sanjiangyuan.westgis.ac.cn/include/' + . PATH_SEPARATOR . '../include' . PATH_SEPARATOR . '../application/models' . PATH_SEPARATOR . '../application/module' . PATH_SEPARATOR . '../application/default/controllers' @@ -23,6 +24,7 @@ $registry = Zend_Registry::getInstance(); $registry->set('config', $config); // setup application authentication +ini_set('session.cookie_domain', '.sanjiangyuan.org.cn' ); $auth = Zend_Auth::getInstance(); $auth->setStorage(new Zend_Auth_Storage_Session('westdc'));