Example #1
0
 public function init()
 {
     parent::init();
     if (isset($_POST['sessionId'])) {
         $session = Yii::app()->getSession();
         $session->close();
         $session->sessionID = $_POST['sessionId'];
         $session->open();
     }
     $this->_user = parent::_sessionGet('_' . $this->module->id);
     if (empty($this->_user[$this->module->id . 'Id'])) {
         $this->redirect($this->createUrl('/login', array('userType' => $this->module->id)));
     }
 }