Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expusersessions

The tracked sessions of an account (Your devices): list them, end all of them or one, as an administrator does on user/sessions (ending is a dry run unless --apply).

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/commands/expusersessions.md

On this page

exp:expusersessions

The tracked sessions of an account (Your devices): list them, end all of them or one, as an administrator does on user/sessions (ending is a dry run unless --apply).

Script bin/php/expusersessions.php, code in kernel/private/classes/commands/expusersessions.php. Run it from the installation root, as the user the web server runs as:

./console exp:expusersessions --help
./console exp:user:sessions --help
php bin/php/expusersessions.php --help

Help text

The sessions of an account
Lists the account's running sessions as Your devices shows them: id, how it signed in, device and
browser, the approximate address and the last activity. --end ends all of them, --session=<id>
ends one, as an administrator does on user/sessions; the person has to sign in again there. The
audit records access.session.revoke. Without --apply nothing is ended.

./console exp:user:sessions jane
./console exp:user:sessions jane --end --apply
./console exp:user:sessions jane --session=812 --apply

Options

OptionValueHelp
--endEnd every tracked session of the account (Your devices)
--sessionrequiredEnd only the session with this id (from the list)
--applyMake the change; without it the command only lists what it would change (a dry run)
--dry-runThe default, kept for scripts that pass it: list what would change, change nothing
--asrequiredAct as this user (login, e-mail or id; default the user of [UserSettings] UserCreatorID); the audit records it as who did it
--formatrequiredtext (default) or json (the machine output exp-user/1)

Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Arguments: [user].


Generated by ./console exp:help:examples from bin/php/expusersessions.php, kernel/private/classes/commands/expusersessions.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x