File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed
Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## 1.1.8 - 2018-05-04
4+
5+ * @chrisrowley14 added ability to set a lifeTime during session init and added tests.
6+
37## 1.1.7 - 2018-01-07
48
59* The tests were fixed.
Original file line number Diff line number Diff line change @@ -75,9 +75,13 @@ Session::getPrefix();
7575### - Iniciar sesión si la sesión no se ha iniciado:
7676
7777``` php
78- Session::init();
78+ Session::init($lifeTime );
7979```
8080
81+ | Atributo | Descripción | Tipo | Requerido | Predeterminado
82+ | --- | --- | --- | --- | --- |
83+ | $lifeTime | Duración de la sesión. | int | No | 0 |
84+
8185** # Return** (boolean)
8286
8387### - Añadir valor a una sesión:
@@ -291,6 +295,7 @@ Ejecutar todas las pruebas anteriores:
291295- [ ] Mejorar pruebas.
292296- [ ] Mejorar documentación.
293297- [ ] Refactorizar código para las reglas de estilo de código deshabilitadas. Ver [ phpmd.xml] ( phpmd.xml ) y [ .php_cs.dist] ( .php_cs.dist ) .
298+ - [ ] Agregar pruebas para la duración máxima de la sessión en el método init().
294299
295300## Contribuir
296301
@@ -313,6 +318,10 @@ Si deseas colaborar, puedes echar un vistazo a la lista de
313318:---:|
314319[ peter279k] ( https://github.com/peter279k ) |
315320
321+ [ <img alt =" chrisrowley14 " src =" https://avatars1.githubusercontent.com/u/12914881?s=117&v=4 " height =" 117 " width =" 117 " >] ( https://github.com/chrisrowley14 ) |
322+ :---:|
323+ [ chrisrowley14] ( https://github.com/chrisrowley14 ) |
324+
316325## Repositorio
317326
318327La estructura de archivos de este repositorio se creó con [ PHP-Skeleton] ( https://github.com/Josantonius/PHP-Skeleton ) .
Original file line number Diff line number Diff line change @@ -75,9 +75,13 @@ Session::getPrefix();
7575### - Start session if session has not started:
7676
7777``` php
78- Session::init();
78+ Session::init($lifeTime );
7979```
8080
81+ | Attribute | Description | Type | Required | Default
82+ | --- | --- | --- | --- | --- |
83+ | $lifeTime | Life time during session. | int | No | 0 |
84+
8185** # Return** (boolean)
8286
8387### - Add value to a session:
@@ -291,6 +295,7 @@ Run all previous tests:
291295- [ ] Improve tests.
292296- [ ] Improve documentation.
293297- [ ] Refactor code for disabled code style rules. See [ phpmd.xml] ( phpmd.xml ) and [ .php_cs.dist] ( .php_cs.dist ) .
298+ - [ ] Add tests for session duration in the init() method.
294299
295300## Contribute
296301
@@ -313,6 +318,10 @@ If you would like to help, please take a look at the list of
313318:---:|
314319[ peter279k] ( https://github.com/peter279k ) |
315320
321+ [ <img alt =" chrisrowley14 " src =" https://avatars1.githubusercontent.com/u/12914881?s=117&v=4 " height =" 117 " width =" 117 " >] ( https://github.com/chrisrowley14 ) |
322+ :---:|
323+ [ chrisrowley14] ( https://github.com/chrisrowley14 ) |
324+
316325## Repository
317326
318327The file structure from this repository was created with [ PHP-Skeleton] ( https://github.com/Josantonius/PHP-Skeleton ) .
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public static function getPrefix()
5757 /**
5858 * If session has not started, start sessions.
5959 *
60- * @param int $LifeTime → Lifetime of session in seconds
60+ * @param int $lifeTime → lifetime of session in seconds
6161 *
6262 * @return bool
6363 */
You can’t perform that action at this time.
0 commit comments