wpdb-phpsessions icon indicating copy to clipboard operation
wpdb-phpsessions copied to clipboard

PHP Sessions backend via $wpdb in WordPress

MySQL-backed PHP Sessions in WordPress

wpdb-phpsessions is a PHP sessions backend that uses the MySQL database (via $wpdb) for storage and management.

Why is this even needed?

In an endeavor to speed WordPress sites up we decided to move all PHP sessions into the database. Check out our extensive PHP Sessions Can Hurt Your WordPress Performance article for more information and caveats.

Installation

Drop wpdb-phpsessions.php into your wp-content/plugins/ or wp-content/mu-plugins/ directory and enjoy.

License

wpdb-phpsessions Copyright (c) 2016 Pressjitsu // licensed under the GPLv3 (https://www.gnu.org/licenses/gpl-3.0.txt)