Added redis session cache + sf session ttl 30d.

This commit is contained in:
2020-01-30 22:13:21 +03:00
parent da5ead3066
commit b623bf88d3
5 changed files with 292 additions and 278 deletions
+1 -1
View File
@@ -1 +1 @@
web: heroku-php-apache2 public/
web: vendor/bin/heroku-php-apache2 public/
+1
View File
@@ -5,6 +5,7 @@
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-redis": "*",
"knpuniversity/oauth2-client-bundle": "^1.32",
"league/oauth2-google": "^3.0",
"predis/predis": "^1.1",
Generated
+282 -277
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -6,9 +6,13 @@ framework:
# Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support.
session:
enabled: true
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
cookie_secure: auto
cookie_samesite: lax
cookie_lifetime: 2592000 # 30days
gc_maxlifetime: 2592000
gc_probability: 0
#esi: true
#fragments: true
+4
View File
@@ -0,0 +1,4 @@
session.save_handler=redis
session.save_path="${SESSION_REDIS_URL}"
session.cache_expire=0
session.gc_probability=0