{% extends "base.html" %} {% load static %} {% block title %}Terminate Session - Session Management{% endblock %} {% block content %}
You are about to terminate an active user session. The user will be immediately logged out and will need to authenticate again.
| Session Key: | {{ object.session_key|truncatechars:32 }}... |
| User: |
{% if object.user %}
{{ object.user.get_full_name }}
{{ object.user.username }} {% else %} Anonymous Session {% endif %} |
| IP Address: | {{ object.ip_address|default:"Unknown" }} |
| Created: | {{ object.created_at|date:"M d, Y H:i:s" }} |
| Last Activity: |
{{ object.last_activity|date:"M d, Y H:i:s" }}
{{ object.last_activity|timesince }} ago |
| Status: | {% if object.is_active %} Active {% else %} Expired {% endif %} |
| Duration: | {{ object.duration }} |
| Browser: |
{% if object.user_agent %}
{{ object.browser_info.name }} {{ object.browser_info.version }}
{{ object.browser_info.os }} {% else %} Unknown {% endif %} |
| Expires: |
{% if object.expires_at %}
{{ object.expires_at|date:"M d, Y H:i:s" }}
{% if object.is_active %}
{{ object.expires_at|timeuntil }} remaining {% endif %} {% else %} No expiration {% endif %} |
This session has already expired and is no longer active. Termination will only remove it from the database.
This session has been flagged for suspicious activity.
Immediate termination is recommended for security reasons.
This user has {{ related_sessions|length }} other active session(s):
| IP Address | Browser | Last Activity | Action |
|---|---|---|---|
| {{ session.ip_address|default:"Unknown" }} | {{ session.browser_info.name|default:"Unknown" }} | {{ session.last_activity|timesince }} ago | View |