PURGEPE...SESSIONS(1)
π§Ό NAME β¨
okay bestie so this page is PURGEPE...SESSIONS(1) from the User Contributed Perl Documentation collection, and it's all about:
purgePersistentSessions β remove persistent sessions that match a certain filter π
π SYNOPSIS
purgePersistentSessions [options] [filters]
that's it. that's the whole vibe. options, filters, go π«Ά
π DESCRIPTION
so here's the tea π β LemonLDAP::NG stores all your user info in an object called a persistent session. and likeβ¦ you don't have to purge them, nobody's forcing you. but on the big installs where users come and go constantly, these lil persistent sessions just keep piling up like laundry in your chair π and at some point purging them genuinely makes sense.
that's where this script comes in. it lets you automatically yeet persistent sessions that match one or several filters. group chat cleanup energy. obsessed. β¨
β¨ OPTIONS β¨
π GENERAL OPTIONS
--help,-hβ prints a lil brief help message and then dips. that's it, that's all π--debug,-dβ spills extra diagnostics over toSTDERRso you can see what's going on--json,-jβ logs execution stats as JSON instead of the human-readable text, for when you're feeding it to a machine π¦--audit,-jβ emits an audit log for every single persistent session that gets removed
ngl the page literally lists-jfor both--jsonand--auditπ that's exactly what it says, no cap, i'm just the messenger π
π¦ FILTERS
filters are the way you tell it which persistent sessions you actually want gone. and bestie, listen: you need to specify at least one filter. if you don't, nothing will be removed. it just sits there. respectfully. π
you can stack multiple filters too! and when you do, ALL of them have to match before a persistent session gets deleted. every single one. no partial credit. β
--creation=SECONDSβ the persistent session gets deleted if it was created more thanSECONDSago--last-update=SECONDSβ the persistent session gets deleted if it was last updated more thanSECONDSago--recent-login=SECONDSβ the persistent session gets deleted if the login history's most recent successful login happened more thanSECONDSago. and if there are no successful logins at all, then it gets deleted too π--no-login-successβ the persistent session gets deleted if its login history contains zero successful logins. this one's highkey useful for clearing out persistent sessions that got created when someone typed a username that doesn't even exist into the login form π--no-registered-2faβ the persistent session gets deleted if the user has not registered a second factor device π
π SEE ALSO
<http://lemonldap-ng.org/> π
π AUTHORS
Maxime Besson, <maxime.besson@worteks.com> π
π BUG REPORT
use the OW2 system to report a bug or ask for features, bestie:
<https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues> π«Ά
π DOWNLOAD
Lemonldap::NG is available at <https://lemonldap-ng.org/download> β¨
π COPYRIGHT AND LICENSE
Copyright (C) 2024 by Xavier Guimard, <yadd@debian.org> π
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. π
okay that's the whole page, go forth and purge responsibly π§ this was perl v5.42.3, dated 2026-09-24, and that's the sign-off bestie β mwah ππΈ
π¦ where this page comes from
- fedora 43: lemonldap-ng-portal 2.23.4-1.fc43 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- fedora 44: lemonldap-ng-portal 2.23.4-1.fc44 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms