You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-13 17:38:16

Matteo Calorio
Member
Registered: 2013-09-03
Posts: 13

Move _sessions folder out of GLPI

Hello,

is it possible to move for example folder:

    /var/www/html/glpi/files/_sessions

to:

    /var/lib/php/sessions/

Does it makes sense for security? Will GLPI (and GLPI sessions garbage collection) still work?

If yes, where is better to set the variable GLPI_SESSION_DIR?

Thanks,
  Matteo

Offline

#2 2022-06-13 21:52:00

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,814
Website

Re: Move _sessions folder out of GLPI

Please refer to the GLPI Installation Documentation.
https://glpi-install.readthedocs.io/en/ … -locations

It is best to create a file called "local_define.php" in the config folder of GLPI.
In this file, you can put PHP code to define these variables. Anything set here will not get overridden by the defaults of GLPI.

Example:
if (!defined('GLPI_SESSION_DIR')) {
   define('GLPI_SESSION_DIR', '/var/lib/php/sessions')
}


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Online

#3 2022-06-20 15:40:00

Matteo Calorio
Member
Registered: 2013-09-03
Posts: 13

Re: Move _sessions folder out of GLPI

I followed the GLPI Installation Documentation and I did it, thank you very much!

Offline

Board footer

Powered by FluxBB