Respondiendo a alguna de tus preguntas:
JonathanFeller at NOSPAMgmx dot ch
Perhaps, you would also like to timeout a session after some idle time. I noticed that session.gc_maxlifetime is not suitable for this. So I used this code to do the job:
Código PHP:
<?php
if (!isset($_SESSION['timeout_idle'])) {
$_SESSION['timeout_idle'] = time() + MAX_IDLE_TIME;
} else {
if ($_SESSION['timeout_idle'] < time()) {
//destroy session
} else {
$_SESSION['timeout_idle'] = time() + MAX_IDLE_TIME;
}
}
?>
Fuente:
http://www.php.net/manual/es/session.security.php
Seguro que puedes encontrar mas información en el manual de sesiones:
http://www.php.net/manual/es/book.session.php
Mira esto tambien:
http://www.php.net/manual/es/functio...kie-params.php