"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/web/DbSession.php" between
yii2-2.0.35.tar.gz and yii2-2.0.36.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

DbSession.php  (yii2-2.0.35):DbSession.php  (yii2-2.0.36)
skipping to change at line 97 skipping to change at line 97
* This method will initialize the [[db]] property to make sure it refers to a valid DB connection. * This method will initialize the [[db]] property to make sure it refers to a valid DB connection.
* @throws InvalidConfigException if [[db]] is invalid. * @throws InvalidConfigException if [[db]] is invalid.
*/ */
public function init() public function init()
{ {
parent::init(); parent::init();
$this->db = Instance::ensure($this->db, Connection::className()); $this->db = Instance::ensure($this->db, Connection::className());
} }
/** /**
* Updates the current session ID with a newly generated one . * {@inheritdoc}
* Please refer to <https://secure.php.net/session_regenerate_id> for more d
etails.
* @param bool $deleteOldSession Whether to delete the old associated sessio
n file or not.
*/ */
public function regenerateID($deleteOldSession = false) public function regenerateID($deleteOldSession = false)
{ {
$oldID = session_id(); $oldID = session_id();
// if no session is started, there is nothing to regenerate // if no session is started, there is nothing to regenerate
if (empty($oldID)) { if (empty($oldID)) {
return; return;
} }
 End of changes. 1 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)