Code Monkey home page Code Monkey logo

Comments (8)

cedric-anne avatar cedric-anne commented on July 28, 2024

Hi,

Could you check if #17314 fixes this issue ?

from glpi.

as-umed avatar as-umed commented on July 28, 2024

@cedric-anne Anne, I swapped lines in [src/System/Requirement/SessionsSecurityConfiguration.php] and in [src/Auth.php] but the message in [/front/central.php] still remains the same. Big orange bar with this 'PHP directive "session.cookie_secure" should be set to "on" when GLPI can be accessed on HTTPS protocol.' message.

from glpi.

cedric-anne avatar cedric-anne commented on July 28, 2024

It looks like your htaccess file is not correctly applied. The expected directive is php_value session.cookie_secure 1.

from glpi.

as-umed avatar as-umed commented on July 28, 2024

@cedric-anne OK, moved .htaccess to catalogue public and now everything's good. Why wouldn't it work by setting this parameter globally in php.ini?

Thank for your assistance, problem fixed by #17314 and .htaccess.

from glpi.

cedric-anne avatar cedric-anne commented on July 28, 2024

Why wouldn't it work by setting this parameter globally in php.ini?

It works when it is set in the php.ini file. You may have to reload the related sevice, that can be Apache, PHP-FPM, ... depending on your server configuration.

from glpi.

as-umed avatar as-umed commented on July 28, 2024

@cedric-anne I've set it on all php.ini files I could find, restarted all services, no success, I've restarted even a whole VM:

fpm/php.ini:;session.cookie_secure = 1
cli/php.ini:;session.cookie_secure = 1
apache2/php.ini:;session.cookie_secure = 1
root@<REDACTED>:/etc/php/8.2#

But with .htaccess it's OK.

from glpi.

cedric-anne avatar cedric-anne commented on July 28, 2024

The ; char is used to comment lines. It means that the line is ignored and it explains why your configuration is not applied.

from glpi.

as-umed avatar as-umed commented on July 28, 2024

@cedric-anne Yeah, definetely, I have to buy new glasses or set bigger text in terminal... Thank you so much. I've read those lines for hundreds of times, didn't see the semicolone.

from glpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.