mirror of
https://github.com/stan220/chixana.git
synced 2026-09-08 15:28:46 +00:00
Added redis session cache + sf session ttl 30d.
This commit is contained in:
@@ -1 +1 @@
|
|||||||
web: heroku-php-apache2 public/
|
web: vendor/bin/heroku-php-apache2 public/
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
|
"ext-redis": "*",
|
||||||
"knpuniversity/oauth2-client-bundle": "^1.32",
|
"knpuniversity/oauth2-client-bundle": "^1.32",
|
||||||
"league/oauth2-google": "^3.0",
|
"league/oauth2-google": "^3.0",
|
||||||
"predis/predis": "^1.1",
|
"predis/predis": "^1.1",
|
||||||
|
|||||||
Generated
+282
-277
File diff suppressed because it is too large
Load Diff
@@ -6,9 +6,13 @@ framework:
|
|||||||
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
# 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.
|
# Remove or comment this section to explicitly disable session support.
|
||||||
session:
|
session:
|
||||||
|
enabled: true
|
||||||
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
|
handler_id: Symfony\Component\HttpFoundation\Session\Storage\Handler\RedisSessionHandler
|
||||||
cookie_secure: auto
|
cookie_secure: auto
|
||||||
cookie_samesite: lax
|
cookie_samesite: lax
|
||||||
|
cookie_lifetime: 2592000 # 30days
|
||||||
|
gc_maxlifetime: 2592000
|
||||||
|
gc_probability: 0
|
||||||
|
|
||||||
#esi: true
|
#esi: true
|
||||||
#fragments: true
|
#fragments: true
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
session.save_handler=redis
|
||||||
|
session.save_path="${SESSION_REDIS_URL}"
|
||||||
|
session.cache_expire=0
|
||||||
|
session.gc_probability=0
|
||||||
Reference in New Issue
Block a user