=== Auto-Logout Idle Users ===
Contributors: snehalpancholi
Tags: idle logout, session timeout, auto logout, security, user session
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically logs out users after a configurable idle period with a warning countdown modal.

== Description ==

Auto-Logout Idle Users monitors frontend and admin user activity and logs the user out if no interaction is detected within a configurable time window. A warning modal appears before logout with a live countdown, giving users a chance to stay logged in by clicking a button.

**Features:**

* Configurable idle timeout (1–1440 minutes)
* Warning countdown modal with configurable seconds (10–300)
* Role-based targeting — apply to any combination of user roles
* Optional: apply in the WordPress admin area
* Fully customisable modal text (title, message, button label)
* Dark-mode ready CSS
* No jQuery dependency — pure vanilla JavaScript

== Installation ==

1. Upload the `auto-logout-idle` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu.
3. Go to **Settings → Idle Logout** to configure.

== Frequently Asked Questions ==

= Does this work in the admin area? =
Only if you enable "Apply in Admin" in Settings. By default it only runs on the frontend.

= What counts as activity? =
Mouse movement, mouse clicks, keyboard input, scrolling, and touch events all reset the idle timer.

= Can I apply this to admins only? =
Yes — check only the Administrator role in the "Apply to Roles" list.

== Changelog ==

= 1.0.0 =
* Initial release.
