add cookie domain
This commit is contained in:
parent
f161415500
commit
e1e1960474
|
@ -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'));
|
||||
|
||||
|
|
Loading…
Reference in New Issue