Estas en el tema de cuanto duran las variables sessión? en el foro de PHP en Foros del Web. Hola, alguien sabe cuanto duran las variables sessión?
20 minutos como en asp?
eternamente?...
Se debe configurar la duracion de la sesion en php.ini
Se puede configurar para durar hasta que se cierre el navegador, o que dure hasta que el usuario haya estadi inactivo cierta cantidad de tiempo.
php.ini
duracion de la cookie de sesion
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 0
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.
; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440