.. include:: /Includes.rst.txt .. _feature-1791191895: ================================= Feature: List and end my sessions ================================= Description =========== Every web session and every app login (refresh-token family) is a session of its user with a device label read from the User-Agent or the ``clientName`` given at ``createToken``, its creation, its last activity (written at most once a minute) and the address of that activity. Users list them with ``listMySessions`` and end one with ``revokeMySession`` or all others with ``revokeMyOtherSessions``. An ended web session needs a new login at its next request; an ended app login loses its refresh tokens, and its access tokens, which carry the session as ``sid``, fail at once. ``UserSessionRevoked`` is published. The session of another user answers 404. Impact ====== New table ``user_session``. Access tokens issued before this change carry no session and stay valid until they expire. .. index:: API, Database, package:adsum-core