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
|
@ -27,7 +27,7 @@ class BillingController extends Zend_Controller_Action {
|
|||
Billing::ensureClientIdIsValid();
|
||||
|
||||
//Zend's CSRF token element requires the session to be open for writing
|
||||
session_start();
|
||||
SessionHelper::reopenSessionForWriting();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_BillingUpgradeDowngrade();
|
||||
|
@ -224,7 +224,7 @@ class BillingController extends Zend_Controller_Action {
|
|||
$this->view->headLink()->appendStylesheet($baseUrl.'css/billing.css?'.$CC_CONFIG['airtime_version']);
|
||||
|
||||
//Zend's CSRF token element requires the session to be open for writing
|
||||
session_start();
|
||||
SessionHelper::reopenSessionForWriting();
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = new Application_Form_BillingClient();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue