Skip to content

Document configurable session lifetimes, and complete the config.php example - #573

Draft
imorland wants to merge 3 commits into
mainfrom
im/session-lifetimes
Draft

Document configurable session lifetimes, and complete the config.php example#573
imorland wants to merge 3 commits into
mainfrom
im/session-lifetimes

Conversation

@imorland

Copy link
Copy Markdown
Member

Two changes.

A Sessions section in config.md covering the new session block: the three keys, a table of what each token type governs, and the config-takes-precedence behaviour. It notes that logins through another service are always session_remember, since there's no "remember me" checkbox on those — on a forum where most people sign in that way, it's the only value that matters.

The example block at the top now shows every option core reads. It said "here's a quick overview" while omitting safe_mode_extensions, all five cookie.* options, session.driver, database.prefix_indexes and flarum_announcements.disabled. I checked each key against the source rather than working from the existing block.

Also fills in the empty "2.1 Changes" section of update-2_x.md with the Extend\AccessToken extender, lifetime() vs the $lifetime default, and the rememberCookieLifeTime() deprecation.

Framework: flarum/framework#4918

Adds a Sessions section covering the new session block in config.php, and
fills in the 2.1 changes page with the access token extender.

The example at the top of the config page said it was an overview of
everything while leaving out safe_mode_extensions, the cookie options,
session.driver, database.prefix_indexes and the announcements key. Checked
each key against core rather than the existing block.
Which values env() converts, that numbers stay strings, and what to do
for options expecting an array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant