Refactored double Set-Cookie prevention code, and session reopening code
This commit is contained in:
parent
91c584ba16
commit
8b6833180d
8 changed files with 30 additions and 22 deletions
|
@ -18,7 +18,7 @@ class UserController extends Zend_Controller_Action
|
|||
{
|
||||
// Start the session to re-open write permission to the session so we can
|
||||
// create the namespace for our csrf token verification
|
||||
session_start();
|
||||
SessionHelper::reopenSessionForWriting();
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
|
||||
$request = $this->getRequest();
|
||||
|
@ -121,7 +121,7 @@ class UserController extends Zend_Controller_Action
|
|||
|
||||
public function editUserAction()
|
||||
{
|
||||
session_start(); //Reopen session for writing.
|
||||
SessionHelper::reopenSessionForWriting();
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_EditUser();
|
||||
if ($request->isPost()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue