-
-
Save uno-de-piera/fbe947166a54e3d229535efade09a116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$di->setShared('session', function() { | |
//establecer el límite en 1 hora | |
ini_set('session.gc_maxlifetime', 3600); | |
session_set_cookie_params(3600); | |
//iniciar la sesión | |
$session = new SessionAdapter(); | |
$session->start(); | |
return $session; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment