=== Login Timeout Sessions ===
Contributors: galaxyweblinks
Tags: Login Timeout Sessions, Login Session, Set login expiry, Session Expired
Requires PHP: 7.0
Stable tag: 1.2.1
Requires at least: 5.5
Tested up to: 6.8
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Donate link: https://wordpress.org/plugins/

Allows you the ability to set login session / expiry Settings on user capacities by admin panel.

== Description ==

Allows you the ability to set login session / expiry Settings on user capacities by admin panel.

By default the capabilities of the user are not defined in WordPress, for enhanced security their capabilities have a limit for the modification of site data, removal and creation.

## Key Feature Comes with Login Timeout Sessions Plugin ##

* Set new login session.
* Set login ‘Remember me’ session.
* Set special timeout session for Users with a specific capability.
* For example: You can set a longer or shorter login time for administrators with the "edit_theme_options" capability. (see Roles and Capabilities in WordPress Codex).
* Use the default WordPress behaviours.
* Add Updates panel (Settings > Login Sessions).
* Deactivate restore default WordPress behavior.

Here’s a link to the documentation for the plugin. This will help you learn more about its features and how to use it.
<strong>[Documentation](https://wp-plugins.galaxyweblinks.com/wp-plugins/login-timeout-sessions/doc/)</strong>
For any feedback or queries regarding this plugin, please contact our [Support team](https://wp-plugins.galaxyweblinks.com/contact/).

== Installation ==

### Automatic Install From WordPress Dashboard

1. Login to your admin panel
2. Navigate to Plugins -> Add New
3. Search **Login Timeout Sessions**
4. Click install and activate respectively.

### Manual Install From WordPress Dashboard

If your server is not connected to the Internet, then you can use this method-

1. Download the plugin by clicking on the red button above. A ZIP file will be downloaded.
2. Login to your site's admin panel and navigate to Plugins -> Add New -> Upload.
3. Click choose file, select the plugin file and click install

### Install Using FTP

If you are unable to use any of the methods due to internet connectivity and file permission issues, then you can use this method-
 
1. Download the plugin by clicking on the red button above. A ZIP file will be downloaded.
2. Unzip the file.
3. Launch your favorite FTP client. Such as FileZilla, FireFTP, CyberDuck etc. If you are a more advanced user, then you can use SSH too.
4. Upload the folder to `wp-content/plugins/`
5. Log in to your WordPress dashboard.
6. Navigate to Plugins -> Installed
7. Activate the plugin


== Frequently Asked Questions ==

= How to manage login sessions? =

It is displayed in Settings->Login Sessions, and then you can edit the session from the capabilities of the users.

== Screenshots ==

1. Plugin Install
2. Plugin Page
3. Settings

== Changelog ==

= 1.2.1 =
* Fixed: Critical bug causing automatic user logouts
* Fixed: Malformed array structure in plugin activation causing session failures
* Fixed: Incorrect get_option() default values causing array access errors
* Fixed: Invalid validation logic preventing settings from saving properly
* Fixed: Missing array key checks throughout the codebase
* Fixed: Wrong time unit defaults (changed from hours to days)
* Fixed: Checkbox value handling for capability-based sessions
* Added: Automatic detection and repair system for corrupted settings
* Added: Smart preservation of user settings during automatic repair
* Improved: Performance optimization with early exit caching
* Improved: Full compatibility with WordPress 6.8
* Improved: Error handling and defensive programming throughout

= 1.2 =
Stable Release

= 1.1 =
Stable Release

= 1.0.3 =
Stable Release

= 1.0.2 =
Stable Release

= 1.0.1 =
Stable Release

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.2.1 =
CRITICAL UPDATE: Fixes automatic logout issues and session timeout bugs. Includes automatic repair system for existing installations. Update immediately if experiencing unexpected logouts.

= 1.2 =
Stable Release

= 1.1 =
Stable Release

= 1.0.3 =
Stable Release

= 1.0.2 =
Stable Release

= 1.0.1 =
Stable Release

= 1.0.0 =
Compatible with more recent versions of WordPress.
