Skip to content

Commit

Permalink
0.12.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
romeOz committed Nov 9, 2015
1 parent 7c75e0a commit 54f772b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ echo $session->get('name'); // result: Tom

Requirements
-------------------
* PHP 5.4+
* **PHP 5.4+**
* For `MemorySession` required [Rock Cache](https://github.com/romeOz/rock-cache): `composer require romeoz/rock-cache`
* For `MongoSession` required [Rock MongoDB](https://github.com/romeOz/rock-mongodb): `composer require romeoz/rock-mongodb`
* For `DbSession` required [Rock DB](https://github.com/romeOz/rock-db): `composer require romeoz/rock-db`

>All unbolded dependencies is optional.
License
-------------------

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.11-dev"
"dev-master": "0.12-dev"
}
}
}
12 changes: 8 additions & 4 deletions src/DbSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ public function regenerateID($deleteOldSession = false)
} else {
// shouldn't reach here normally
$this->connection->createCommand()
->insert($this->sessionTable, [
'id' => $newID,
'expire' => time() + $this->getTimeout(),
])->execute();
->insert(
$this->sessionTable,
[
'id' => $newID,
'expire' => time() + $this->getTimeout(),
]
)
->execute();
}
}

Expand Down

0 comments on commit 54f772b

Please sign in to comment.