Skip to content

Commit 45f76e1

Browse files
committed
Updated to 1.1.8 version
1 parent 0ae80a9 commit 45f76e1

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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.

README-ES.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

318327
La estructura de archivos de este repositorio se creó con [PHP-Skeleton](https://github.com/Josantonius/PHP-Skeleton).

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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

318327
The file structure from this repository was created with [PHP-Skeleton](https://github.com/Josantonius/PHP-Skeleton).

src/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function getPrefix()
5757
/**
5858
* If session has not started, start sessions.
5959
*
60-
* @param int $LifeTimeLifetime of session in seconds
60+
* @param int $lifeTimelifetime of session in seconds
6161
*
6262
* @return bool
6363
*/

0 commit comments

Comments
 (0)