File tree Expand file tree Collapse file tree 2 files changed +22
-18
lines changed
Expand file tree Collapse file tree 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:
176176### - Establecer prefijo para sesiones:
177177
178178``` php
179- Session::set('name', 'Joseph ');
179+ Session::setPrefix('_prefix ');
180180```
181181
182182### - Obtener prefijo de las sesiones:
@@ -191,10 +191,16 @@ Session::getPrefix();
191191Session::init();
192192```
193193
194+ ### - Iniciar sesión estableciendo el tiempo de duración de la sessión:
195+
196+ ``` php
197+ Session::init(3600);
198+ ```
199+
194200### - Añadir valor a una sesión:
195201
196202``` php
197- Session::init( );
203+ Session::set('name', 'Joseph' );
198204```
199205
200206### - Agregar valor múltiple a las sesiones:
@@ -314,13 +320,9 @@ Si deseas colaborar, puedes echar un vistazo a la lista de
314320
315321** ¡Gracias a quienes ya habéis contribuido a este proyecto!**
316322
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 ) |
324326
325327## Repositorio
326328
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ Example of use for this library:
176176### - Set prefix for sessions:
177177
178178``` php
179- Session::set('name', 'Joseph ');
179+ Session::setPrefix('_prefix ');
180180```
181181
182182### - Get sessions prefix:
@@ -191,10 +191,16 @@ Session::getPrefix();
191191Session::init();
192192```
193193
194+ ### - Start session by setting the session duration:
195+
196+ ``` php
197+ Session::init(3600);
198+ ```
199+
194200### - Add value to a session:
195201
196202``` php
197- Session::init( );
203+ Session::set('name', 'Joseph' );
198204```
199205
200206### - Add multiple value to sessions:
@@ -314,13 +320,9 @@ If you would like to help, please take a look at the list of
314320
315321** Thank you to all the people who already contributed to this project!**
316322
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 ) |
324326
325327## Repository
326328
You can’t perform that action at this time.
0 commit comments