tiempo en "sessions"
Hola,
¿Alguien sabe cómo modificar el tiempo que debe durar una "session"?
Gracias, y salu2
¿Alguien sabe cómo modificar el tiempo que debe durar una "session"?
Gracias, y salu2
La clase HttpSession dispone de este método que me imagino que será lo que necesitas
La clase HttpSession dispone de este método que supongo que será lo que necesitas:
public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
Parameters:
interval - An integer specifying the number of seconds.
public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
Parameters:
interval - An integer specifying the number of seconds.
