Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PHP warning
- session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent
- ...\yii\framework\web\CHttpSession.php(182)
- 170 {
- 171 session_id($value);
- 172 }
- 173
- 174 /**
- 175 * Updates the current session id with a newly generated one .
- 176 * Please refer to {@link http://php.net/session_regenerate_id} for more details.
- 177 * @param boolean $deleteOldSession Whether to delete the old associated session file or not.
- 178 * @since 1.1.8
- 179 */
- 180 public function regenerateID($deleteOldSession=false)
- 181 {
- 182 session_regenerate_id($deleteOldSession);
- 183 }
- 184
- 185 /**
- 186 * @return string the current session name
- 187 */
- 188 public function getSessionName()
- 189 {
- 190 return session_name();
- 191 }
- 192
- 193 /**
- 194 * @param string $value the session name for the current session, must be an alphanumeric string, defaults to PHPSESSID
- Stack Trace #0 – ...\yii\framework\web\CHttpSession.php(182): session_regenerate_id(true)
- 177 * @param boolean $deleteOldSession Whether to delete the old associated session file or not.
- 178 * @since 1.1.8
- 179 */
- 180 public function regenerateID($deleteOldSession=false)
- 181 {
- 182 session_regenerate_id($deleteOldSession);
- 183 }
- 184
- 185 /**
- 186 * @return string the current session name
- 187 */
- #1 – ...\yii\framework\web\auth\CWebUser.php(700): CHttpSession->regenerateID(true)
- 695 * @param string $name the display name for the user
- 696 * @param array $states identity states
- 697 */
- 698 protected function changeIdentity($id,$name,$states)
- 699 {
- 700 Yii::app()->getSession()->regenerateID(true);
- 701 $this->setId($id);
- 702 $this->setName($name);
- 703 $this->loadIdentityStates($states);
- 704 }
- 705
- #2 – ...\yii\framework\web\auth\CWebUser.php(451): CWebUser->changeIdentity("1", "Dr.Death", array())
- 446 if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3]))
- 447 {
- 448 list($id,$name,$duration,$states)=$data;
- 449 if($this->beforeLogin($id,$states,true))
- 450 {
- 451 $this->changeIdentity($id,$name,$states);
- 452 if($this->autoRenewCookie)
- 453 {
- 454 $cookie->expire=time()+$duration;
- 455 $request->getCookies()->add($cookie->name,$cookie);
- 456 }
- #3 – ...\yii\framework\web\auth\CWebUser.php(196): CWebUser->restoreFromCookie()
- 191 public function init()
- 192 {
- 193 parent::init();
- 194 Yii::app()->getSession()->open();
- 195 if($this->getIsGuest() && $this->allowAutoLogin)
- 196 $this->restoreFromCookie();
- 197 else if($this->autoRenewCookie && $this->allowAutoLogin)
- 198 $this->renewCookie();
- 199 if($this->autoUpdateFlash)
- 200 $this->updateFlash();
- 201
- #4 – ...\yii\framework\base\CModule.php(388): CWebUser->init()
- 383 if(!isset($config['enabled']) || $config['enabled'])
- 384 {
- 385 Yii::trace("Loading \"$id\" application component",'system.CModule');
- 386 unset($config['enabled']);
- 387 $component=Yii::createComponent($config);
- 388 $component->init();
- 389 return $this->_components[$id]=$component;
- 390 }
- 391 }
- 392 }
- 393
- #5 – ...\yii\framework\base\CModule.php(104): CModule->getComponent("user")
- 099 * @return mixed the named property value
- 100 */
- 101 public function __get($name)
- 102 {
- 103 if($this->hasComponent($name))
- 104 return $this->getComponent($name);
- 105 else
- 106 return parent::__get($name);
- 107 }
- 108
- 109 /**
- #6 – ...\protected\controllers\CronController.php(6): CModule->__get("user")
- 01 <?
- 02
- 03 class CronController extends Controller {
- 04 protected function beforeAction($action) {
- 05 // check key
- 06 if(Yii::app()->user->isGuest) {
- 07 $sKey = Yii::app()->input->get('key');
- 08 if(!$sKey or $sKey != Yii::app()->params['secretKey']) {
- 09 throw new CHttpException(404);
- 10 }
- 11 }
- #7 – ...\yii\framework\web\CController.php(307): CronController->beforeAction(CInlineAction)
- 302 */
- 303 public function runAction($action)
- 304 {
- 305 $priorAction=$this->_action;
- 306 $this->_action=$action;
- 307 if($this->beforeAction($action))
- 308 {
- 309 if($action->runWithParams($this->getActionParams())===false)
- 310 $this->invalidActionParams($action);
- 311 else
- 312 $this->afterAction($action);
- #8 – ...\yii\framework\web\CController.php(287): CController->runAction(CInlineAction)
- 282 * @see runAction
- 283 */
- 284 public function runActionWithFilters($action,$filters)
- 285 {
- 286 if(empty($filters))
- 287 $this->runAction($action);
- 288 else
- 289 {
- 290 $priorAction=$this->_action;
- 291 $this->_action=$action;
- 292 CFilterChain::create($this,$action,$filters)->run();
- #9 – ...\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array())
- 261 {
- 262 if(($parent=$this->getModule())===null)
- 263 $parent=Yii::app();
- 264 if($parent->beforeControllerAction($this,$action))
- 265 {
- 266 $this->runActionWithFilters($action,$this->filters());
- 267 $parent->afterControllerAction($this,$action);
- 268 }
- 269 }
- 270 else
- 271 $this->missingAction($actionID);
- #10 – ...\yii\framework\web\CWebApplication.php(283): CController->run("ParseSova72Ru")
- 278 {
- 279 list($controller,$actionID)=$ca;
- 280 $oldController=$this->_controller;
- 281 $this->_controller=$controller;
- 282 $controller->init();
- 283 $controller->run($actionID);
- 284 $this->_controller=$oldController;
- 285 }
- 286 else
- 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
- 288 array('{route}'=>$route===''?$this->defaultController:$route)));
- #11 – ...\yii\framework\web\CWebApplication.php(142): CWebApplication->runController("cron/ParseSova72Ru")
- 137 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
- 138 $_GET[$name]=$value;
- 139 }
- 140 else
- 141 $route=$this->getUrlManager()->parseUrl($this->getRequest());
- 142 $this->runController($route);
- 143 }
- 144
- 145 /**
- 146 * Registers the core application components.
- 147 * This method overrides the parent implementation by registering additional core components.
- #12 – ...\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
- 157 */
- 158 public function run()
- 159 {
- 160 if($this->hasEventHandler('onBeginRequest'))
- 161 $this->onBeginRequest(new CEvent($this));
- 162 $this->processRequest();
- 163 if($this->hasEventHandler('onEndRequest'))
- 164 $this->onEndRequest(new CEvent($this));
- 165 }
- 166
- 167 /**
- #13 – ...\index.php(22): CApplication->run()
- 17 }
- 18
- 19 $yii = dirname(__FILE__) . '/yii/framework/yii.php';
- 20 require_once(dirname(__FILE__) . '/protected/include/functions.php');
- 21 require_once($yii);
- 22 Yii::createWebApplication($config)->run();
- 23 ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement