File tree 2 files changed +22
-18
lines changed
2 files changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Ejemplo de uso para esta biblioteca:
176
176
### - Establecer prefijo para sesiones:
177
177
178
178
``` php
179
- Session::set('name', 'Joseph ');
179
+ Session::setPrefix('_prefix ');
180
180
```
181
181
182
182
### - Obtener prefijo de las sesiones:
@@ -191,10 +191,16 @@ Session::getPrefix();
191
191
Session::init();
192
192
```
193
193
194
+ ### - Iniciar sesión estableciendo el tiempo de duración de la sessión:
195
+
196
+ ``` php
197
+ Session::init(3600);
198
+ ```
199
+
194
200
### - Añadir valor a una sesión:
195
201
196
202
``` php
197
- Session::init( );
203
+ Session::set('name', 'Joseph' );
198
204
```
199
205
200
206
### - Agregar valor múltiple a las sesiones:
@@ -314,13 +320,9 @@ Si deseas colaborar, puedes echar un vistazo a la lista de
314
320
315
321
** ¡Gracias a quienes ya habéis contribuido a este proyecto!**
316
322
317
- [ <img alt =" peter279k " src =" https://avatars2.githubusercontent.com/u/9021747?v=4&s=117 " height =" 117 " width =" 117 " >] ( https://github.com/peter279k ) |
318
- :---:|
319
- [ peter279k] ( https://github.com/peter279k ) |
320
-
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 ) |
323
+ [ <img alt =" peter279k " src =" https://avatars2.githubusercontent.com/u/9021747?v=4&s=117 " height =" 117 " width =" 117 " >] ( https://github.com/peter279k ) | [ <img alt =" chrisrowley14 " src =" https://avatars1.githubusercontent.com/u/12914881?s=117&v=4 " height =" 117 " width =" 117 " >] ( https://github.com/chrisrowley14 ) |
324
+ :---: | :---: |
325
+ [ peter279k] ( https://github.com/peter279k ) | [ chrisrowley14] ( https://github.com/chrisrowley14 ) |
324
326
325
327
## Repositorio
326
328
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Example of use for this library:
176
176
### - Set prefix for sessions:
177
177
178
178
``` php
179
- Session::set('name', 'Joseph ');
179
+ Session::setPrefix('_prefix ');
180
180
```
181
181
182
182
### - Get sessions prefix:
@@ -191,10 +191,16 @@ Session::getPrefix();
191
191
Session::init();
192
192
```
193
193
194
+ ### - Start session by setting the session duration:
195
+
196
+ ``` php
197
+ Session::init(3600);
198
+ ```
199
+
194
200
### - Add value to a session:
195
201
196
202
``` php
197
- Session::init( );
203
+ Session::set('name', 'Joseph' );
198
204
```
199
205
200
206
### - Add multiple value to sessions:
@@ -314,13 +320,9 @@ If you would like to help, please take a look at the list of
314
320
315
321
** Thank you to all the people who already contributed to this project!**
316
322
317
- [ <img alt =" peter279k " src =" https://avatars2.githubusercontent.com/u/9021747?v=4&s=117 " height =" 117 " width =" 117 " >] ( https://github.com/peter279k ) |
318
- :---:|
319
- [ peter279k] ( https://github.com/peter279k ) |
320
-
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 ) |
323
+ [ <img alt =" peter279k " src =" https://avatars2.githubusercontent.com/u/9021747?v=4&s=117 " height =" 117 " width =" 117 " >] ( https://github.com/peter279k ) | [ <img alt =" chrisrowley14 " src =" https://avatars1.githubusercontent.com/u/12914881?s=117&v=4 " height =" 117 " width =" 117 " >] ( https://github.com/chrisrowley14 ) |
324
+ :---: | :---: |
325
+ [ peter279k] ( https://github.com/peter279k ) | [ chrisrowley14] ( https://github.com/chrisrowley14 ) |
324
326
325
327
## Repository
326
328
You can’t perform that action at this time.
0 commit comments