Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • core core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 233
    • Issues 233
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hubzilla
  • corecore
  • Issues
  • #1330

Closed
Open
Created Jan 25, 2019 by Mark Nowiasz@mnowiasz

Feature Request: Allow custom session handlers

Hi,

I've gained significantly speed by changing Hubzilla's session handler from the built-in database to a file based one (I've written a article discussing this on hubzilla: https://hub.netzgemeinde.eu/articles/buckaroo/ef2110301dc5c6e5)

I'd love to submit my patch - it works fine, if you don't set anything you'll still have the database as a session backend, you have to actively set it the another handler. Anyway, this patch gives admins the freedom of choosing which session handler to use - the built in or another, better suited one.Session.patch

[Edit]I've expenaded the patch, allowing the user to set gc_probabilty (which originally is set to 50) and gc_divisor , default now (if you use a custom session handler) is 1 and 100:

App::$config["system"]['session_gc_probability'] = 1; App::$config["system"]['session_gc_divisor'] = 100; Session2.patch

Edited Jan 26, 2019 by Mark Nowiasz
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking