WP Manifestindependent plugin directory
manifest / security / karks-session-expiration

Karks Session Expiration

A custom plugin that reduces the life of WordPress user sessions for administrators. It trades a tiny bit of convenience for increased security.

★ 1stars
Releaseslatest · 2 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/karks88/karks-session-expiration/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

KARKS SESSION EXPIRATION

by Eric Karkovack

https://www.karks.com

A custom plugin that reduces the life of WordPress user sessions for administrators. It trades a tiny bit of convenience for increased security.

By default, WordPress user sessions expire after 48 hours. This plugin reduces that to 2 (two) hours for users with the Administrator role.

Note: Use this plugin at your own risk. It's meant to be a starting point for something more robust down the road.

WHY CHANGE THE SESSION LIFE?

Stolen user session cookies are a common vector of attack for malicious actors. A cookie could allow someone to access your website without login credentials. From there, they can cause all sorts of damage.

This plugin reduces the life of Administrator user sessions to 2 (two) hours. Thus, reducing the opportunity for a hacker to access the back end of your site.

HOW CAN I CHANGE THE DEFAULT SESSION TIME TO SOMETHING ELSE?

Change the default number '2' to any amount you wish:

    $expiration = 2 * HOUR_IN_SECONDS;

Releases

1 release.

Tag
Published
Releases latest
Feb 2, 2024 2 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.