Skip to content

Commit 6680cca

Browse files
f0x52wxiaoguang
andauthored
clarify what session provider 'db' does (#19713)
* clarify what session provider 'db' does * Also update session.PROVIDER in app.example.ini Co-authored-by: wxiaoguang <[email protected]>
1 parent 761d4f4 commit 6680cca

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

custom/conf/app.example.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,8 @@ PATH =
16081608
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16091609
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
16101610
;;
1611-
;; Either "memory", "file", or "redis", default is "memory"
1611+
;; Either "memory", "file", "redis", "db", "mysql", "couchbase", "memcache" or "postgres"
1612+
;; Default is "memory". "db" will reuse the configuration in [database]
16121613
;PROVIDER = memory
16131614
;;
16141615
;; Provider config options

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ Define allowed algorithms and their minimum key length (use -1 to disable a type
697697

698698
## Session (`session`)
699699

700-
- `PROVIDER`: **memory**: Session engine provider \[memory, file, redis, db, mysql, couchbase, memcache, postgres\].
700+
- `PROVIDER`: **memory**: Session engine provider \[memory, file, redis, db, mysql, couchbase, memcache, postgres\]. Setting `db` will reuse the configuration in `[database]`
701701
- `PROVIDER_CONFIG`: **data/sessions**: For file, the root path; for db, empty (database config will be used); for others, the connection string.
702702
- `COOKIE_SECURE`: **false**: Enable this to force using HTTPS for all session access.
703703
- `COOKIE_NAME`: **i\_like\_gitea**: The name of the cookie used for the session ID.

0 commit comments

Comments
 (0)