Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/08/2005, 10:37
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
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.

session.gc_probability = 1
session.gc_divisor = 100

; After this number of seconds, stored data will be seen as 'garbage' and
; cleaned up by the garbage collection process.
session.gc_maxlifetime = 1440