{"repo":"pantheon-systems/wp-native-php-sessions","free":true,"listed":false,"github":"https://github.com/pantheon-systems/wp-native-php-sessions","clone":"git clone https://github.com/pantheon-systems/wp-native-php-sessions.git","description":"Implement native PHP sessions stored in the database for WordPress.","language":"PHP","stars":146,"topics":["wordpress","wordpress-plugin","hacktoberfest","php-sessions"],"license":"GPL-2.0","category":"databases-storage","readme_excerpt":"Native PHP Sessions # Contributors: getpantheon, outlandish josh, mpvanwinkle77, danielbachhuber, andrew.taylor, jazzs3quence, stovak, jspellman, rwagner00, anaispantheor, metasim Tags: comments, sessions Requires at least: 5.3 Tested up to: 6.9 Stable tag: 1.4.6-dev Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Use native PHP sessions and stay horizontally scalable. Better living through superior technology. Description ## WordPress core does not use PHP sessions, but sometimes they are required by your use-case, a plugin or theme. This plugin implements PHP's native session handlers, backed by the WordPress database. This allows plugins, themes, and custom code to safely use PHP $ SESSION s in a distributed environment where PHP's default tempfile storage just won't work. Note that primary development is on GitHub if you would like to contribute: https://github.com/pantheon-systems/wp-native-php-sessions Installation ## 1. Upload to the /wp-content/plugins/ directory 2. Activate the plugin through the 'Plugins' menu in WordPress That's it! Configuration ## By default the session lifetime is set to 0, which is until the browser is closed. To override this use the pantheon session expiration filter before the Native PHP Sessions plugin is loaded. For example a small Must-use plugin (a.k.a. mu-plugin) could contain: get data() [[#237(https://github.com/pantheon-systems/wp-native-php-sessions/pull/237)]] (reported on WordPress.o","default_branch":null,"files":null,"tree":[],"storefront":"/r/pantheon-systems","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pantheon-systems/wp-native-php-sessions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}