diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-05-26 17:22:40 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-05-26 17:22:40 +0000 |
| commit | 332898366932e52df18c2fbf817f00e657fb0f57 (patch) | |
| tree | d25a82520a37135a2ac97f6d77b383180451fb41 | |
| parent | 007a7d2de7b0939e48fa701d2bcc1d19443cb26b (diff) | |
| download | webtrees-332898366932e52df18c2fbf817f00e657fb0f57.tar.gz webtrees-332898366932e52df18c2fbf817f00e657fb0f57.tar.bz2 webtrees-332898366932e52df18c2fbf817f00e657fb0f57.zip | |
Need to explicitly close sessions for AJAX responses. TODO we should really do this via the WT_Ajax_Controller (or a new WT_Json_Controller)
| -rw-r--r-- | modules_v3/clippings/module.php | 1 | ||||
| -rw-r--r-- | modules_v3/descendancy/module.php | 1 | ||||
| -rw-r--r-- | modules_v3/families/module.php | 1 | ||||
| -rw-r--r-- | modules_v3/individuals/module.php | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/modules_v3/clippings/module.php b/modules_v3/clippings/module.php index 58c63e4e9a..504e0e4638 100644 --- a/modules_v3/clippings/module.php +++ b/modules_v3/clippings/module.php @@ -48,6 +48,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module public function modAction($mod_action) { switch($mod_action) { case 'ajax': + Zend_Session::writeClose(); header('Content-Type: text/html; charset=UTF-8'); echo $this->getSidebarAjaxContent(); break; diff --git a/modules_v3/descendancy/module.php b/modules_v3/descendancy/module.php index 50ce9e11ef..974d4b9c3d 100644 --- a/modules_v3/descendancy/module.php +++ b/modules_v3/descendancy/module.php @@ -43,6 +43,7 @@ class descendancy_WT_Module extends WT_Module implements WT_Module_Sidebar { public function modAction($modAction) { switch ($modAction) { case 'ajax': + Zend_Session::writeClose(); header('Content-Type: text/html; charset=UTF-8'); echo $this->getSidebarAjaxContent(); break; diff --git a/modules_v3/families/module.php b/modules_v3/families/module.php index 807718f709..5d89218014 100644 --- a/modules_v3/families/module.php +++ b/modules_v3/families/module.php @@ -43,6 +43,7 @@ class families_WT_Module extends WT_Module implements WT_Module_Sidebar { public function modAction($modAction) { switch ($modAction) { case 'ajax': + Zend_Session::writeClose(); header('Content-Type: text/html; charset=UTF-8'); echo $this->getSidebarAjaxContent(); break; diff --git a/modules_v3/individuals/module.php b/modules_v3/individuals/module.php index 3f55de9d62..d72a316d80 100644 --- a/modules_v3/individuals/module.php +++ b/modules_v3/individuals/module.php @@ -43,6 +43,7 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { public function modAction($modAction) { switch ($modAction) { case 'ajax': + Zend_Session::writeClose(); header('Content-Type: text/html; charset=UTF-8'); echo $this->getSidebarAjaxContent(); break; |
