wodby / drupal-php

PHP docker container image for Drupal
https://wodby.com/stacks/drupal
MIT License
60 stars 80 forks source link

how to override php.ini session handler params #53

Closed aledelgo closed 6 years ago

aledelgo commented 6 years ago

I would like to use the following params for php.ini where or how could i set it without branching your the entire docker stack?

session.save_handler = redis
session.save_path = "tcp://redis:6379"
csandanov commented 6 years ago

Hmm.. it seems we don't have env vars for this atm. I guess we still haven't added because of most php frameworks handle session stores manually

aledelgo commented 6 years ago

Well, i resolved my problem with a special Drupal Module that override this setting at Drupal bootstrap. The module is Session Proxy if anyone need it.

aledelgo commented 6 years ago

@csandanov your commit https://github.com/wodby/php/commit/6908101ff09ec480e6501728b0470598730c4250#diff-c3862bc6b526e077a849532eae36da07 made me happy and solved a lot of problems i had with SessionProxy D7 module and session-cache storage.

got it working fine updating the project with the new drupal-php image and setting env var to change the php session handler to redis. I discovered your update casually but i'm glad you did it! i'm updating this issue just to make it visible to anyone interested.