add cookie domain

This commit is contained in:
wlx 2014-06-12 01:37:51 +00:00
parent f161415500
commit e1e1960474
1 changed files with 2 additions and 0 deletions

View File

@ -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'));