Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
Would it increase the server load, if I increase PHP session. gc_maxlifetime to 1-2 week?

My project is in zend framework and I want to increase the user inactivity time to 1-2 weeks. Cookies for my browser setting correctly but the session logs out user after 8 hour as I have set the session.gc_maxlifetime value to 28800. So I just wanted to confirm before moving forward that "Would it increase the server load, if I increase PHP session.gc_maxlifetime to 1-2 week?"

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

By default, session data is stored as serialized object in plain text files on the hard disk of your server. Higher session timeout then means more session files in the folder. You won't experience any significant increase in server load, but depending on the amount of sessions you might hit filesystem limitations (scan time increases with the amount of files in a folder)

Alternative session storage like MySQL might be a solution

over 4 years ago · Santiago Trujillo Denunciar

0

Sessions are maintained on server for each user. Increase in session time out will prevent the Server from releasing memory allocated to inactive session.

So yes, if you have too many users and you keeping their session for week, then you will performance issue.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda