PageForge 1.3 : Vérifiez chaque exécution avant qu'elle n'écrive, mettez à jour les pages générées, les spintox et les lots de reprise. Voir ce qui a changé
Native PHP Sessions icon
Maintenu Testé jusqu'à 6.9.12 #10 in comments

Sessions PHP natives

Use native PHP sessions and stay horizontally scalable. Better living through superior technology.

Installations actives10K+10 000 +
Téléchargements · 30D22.9K▲ +9.8% vs prev. 30d
Évaluation4.9/516 avis
Score de santé46/100Juste
Téléchargements de tous les temps1.5MSince Sep 2014
Support résolu0 / 10% au cours des 2 derniers mois
A besoin deWP 5.3PHP 7.4+
Téléchargements · 7j4.6K▼ -28.1% week over week
Notre verdict

Utiliser avec prudence

Native PHP Sessions works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 12 months ago, and scores 46/100 on our health check.

  • Prouvé à grande échelle sur plus de 10 000 sites actifs
  • Uniquement testé jusqu'à WordPress 6,9 (le dernier est de 7,1)

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

3617231.1KAug 31Oct 14Nov 28
Hier288
Moyenne quotidienne (1 ans)561
Jour de pointe2,1044 Décembre 2025
12 Derniers mois204.1K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where Native PHP Sessions stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
les commentaires >100 10,000 Meilleurs commentaires Plugins →
sessions #2 6,046 Best sessions plugins →

Adoption de version

Part de sites actifs par version.

  • 1.488.1%
  • 1.25.9%
  • Autres6.1%

Répartition des notes

★★★★★★★★★★ 4.9 from 16 reviews

  • 5★87.5%
  • 4★12.5%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Native PHP Sessions

From the official readme · v1.4.5

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 $_SESSIONs 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

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:

<?php
function my_session_expiration_override() {
    return 60*60*4; // 4 hours
}
add_filter( 'pantheon_session_expiration', 'my_session_expiration_override' );<h3>CLI Commands</h3>

wp pantheon session add-index

Added in 1.4.0. This command should be run if your installation of the plugin occurred before the addition of the primary ID key to the session table in version 1.2.2. You will be automatically notified when you visit any admin page if this is the case. If there’s no message, your version is good to go. Note that this command is non-destructive, a new table will be created and the existing one preserved in a backup state until you have verified that the upgrade is functioning as expected.

wp pantheon session primary-key-finalize

Added in 1.4.0. If you have run the add-index command and have verified that the new table is functioning correctly, running the primary-key-finalize command will perform a database cleanup and remove the backup table.

wp pantheon session primary-key-revert

Added in 1.4.0. If you have run the add-index command and something unexpected has occurred, just run the primary-key-revert command and the backup table will immediately be returned to being the active table.

WordPress Multisite

As of 1.4.2 the add-index, primary-key-add and primary-key-revert commands are fully multisite compatible.

Contributing

See CONTRIBUTING.md for information on contributing.

Dépannage

If you see an error like “Fatal error: session_start(): Failed to initialize storage module:” or “Warning: ini_set(): A session is active.”, then you likely have a plugin that is starting a session before WP Native PHP Sessions is loading.

To fix, create a new file at wp-content/mu-plugins/000-loader.php and include the following:

<?php
if (file_exists(WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php')) {
    require_once WP_PLUGIN_DIR . '/wp-native-php-sessions/pantheon-sessions.php';
}

This mu-plugin will load WP Native PHP Sessions before all other plugins, while letting you still use the WordPress plugin updater to keep the plugin up-to-date.

Installation

  1. Upload to the /wp-content/plugins/ directory
  2. Activez le plugin via le menu « Plugins » dans WordPress

That’s it!

Journal de modifications

Adds a WP-CLI command to add an index to the sessions table if one does not exist already. If you installed this plugin before version 1.2.2, you likely need to run this command. However, regardless of version at installation a notice will appear in your admin dashboard if your database table is missing the index. If no notice appears, no action is necessary.

1.4.5 (December 2025)

  • Compatibility: Supports WordPress 6.9

1.4.4 (September 17, 2025)

  • Compatibility: Supports PHP 8.4
  • Increases minimum supported PHP version to 7.4
  • Increases minimum supported WordPress version to 5.3
  • Update plugin name in README files and main plugin file to “Native PHP Sessions” [#312]
  • Update Troubleshooting section in README to be more defensive in mu-plugin [#308]

1.4.3 (November 13, 2023)

  • Fixed a PHP warning when running the pantheon session add-index command on a single site installation. [#285]

1.4.2 (November 8, 2023)

  • Fixed an issue with the pantheon session add-index PHP warning. [#276]
  • Fixed a syntax issue with the suggested WP CLI commands [#278]
  • Made wp pantheon session add-index, wp pantheon session primary-key-finalize, and wp pantheon session primary-key-revert fully multisite compatible. [#275]

1.4.1 (October 23, 2023)

  • Fixed an issue with the pantheon session add-index command not working properly on WP multisite [#270]
  • Made the notice added in 1.4.0 dismissable (stores in user meta) & hides for multisite (an update is coming to iterate through all sites on a network) [#271]

1.4.0 (October 17, 2023)

  • Adds new CLI command to add a Primary Column (id) to the pantheon_sessions table for users who do not have one. [#265]
  • Adds alert to dashboard for users who need to run the command.
  • 8.3 compatibility and code quality updates
  • Updates Pantheon WP Coding Standards to 2.0 [#264]

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best Native PHP Sessions alternatives

Tous les commentaires Plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Anti-spam AKISMET : protection anti-spam Anti-spam AKISMET : protection anti-spam The best anti-spam protection to block spam comments and spam in a contact form. The most… par Automattic 5M+ ★★★★★★★★★★ 4.7 (1.2K) Il y a 3 mois 73
2 Désactiver les commentaires Désactiver les commentaires Désactivez les commentaires dans tout le site ou par type de publication, supprimez les commentaires existants en masse et bloquez… par WPDeveloper 1M+ ★★★★★★★★★★ 4.7 (282) il y a 1 semaine 93
3 Abeille antispam Abeille antispam Plugin anti-spam sophistiqué pour des commentaires quotidiens efficaces et des combats anti-spam… par PluginKollektiv 700K+ ★★★★★★★★★★ 4.8 (227) Il y a 3 mois 72
4 Gravatar amélioré – Avatars, profils et confidentialité Gravatar amélioré – Avatars, profils et confidentialité Le plugin officiel Gravatar, avec des paramètres axés sur la confidentialité, des mises à jour de profil faciles et… par Automattic 200K+ ★★★★★★★★★★ 5 (3) il y a 4 semaines 82
5 Désactiver les commentaires Désactiver les commentaires Désactiver, masquer, supprimer en bloc et répondre automatiquement aux commentaires et aux commentaires WooCommerce —… par rbplugins 100K+ ★★★★★★★★★★ 3.8 (25) 3 semaines plus tôt 90
6 Système de commentaires Disqus Système de commentaires Disqus Disqus est le système de commentaires le plus populaire du Web. Utilisez Disqus pour augmenter l'engagement, conserver… par Disqus 30K+ ★★★★★★★★★★ 2.7 (219) il y a 1 mois 65
7 Jette du spam Jette du spam Un puissant plugin anti-spam qui ignore silencieusement les commentaires de spam sans afficher aucune erreur… Par 10K+ ★★★★★★★★★★ 5 (6) Il y a 3 mois 75
8 Cookies pour commentaires Cookies pour commentaires Définit un cookie sur un URL aléatoire qui est ensuite vérifié lorsqu'un commentaire est publié. Si le cookie… de Donncha O Caoimh (A11N) 10K+ ★★★★★★★★★★ 4.9 (18) Il y a 7 ans 42
9 Abonnez-vous aux commentaires Abonnez-vous aux commentaires S'abonner aux commentaires Permet aux commentateurs sur une entrée de s'abonner aux notifications par e-mail… par Mark Jaquith 10K+ ★★★★★★★★★★ 3.9 (14) Il y a 2 mois 77
11 Aucun commentaire de page Aucun commentaire de page Une interface d'administration pour contrôler les paramètres de commentaire par défaut et de suivi des nouveaux messages… par Seth Alling 10K+ ★★★★★★★★★★ 5 (22) Il y a 1 an 56

FAQ

Native PHP Sessions: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is Native PHP Sessions free?

Yes. Native PHP Sessions is free to download and use from the official WordPress.org plugin directory.

Is Native PHP Sessions safe to use in 2026?

Native PHP Sessions works, but test it on a staging site before relying on it in 2026. It runs on 10K+ sites, is rated 4.9/5 and was last updated 12 months ago, and scores 46/100 on our health check.

How many websites use Native PHP Sessions?

Native PHP Sessions is active on 10K+ WordPress websites and has been downloaded 1,465,802 times since it launched in September 2014. It was downloaded 22,886 times in the last 30 days.

Does Native PHP Sessions work with WordPress 7.1?

Native PHP Sessions is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does Native PHP Sessions need?

Native PHP Sessions requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Native PHP Sessions last updated?

The latest version, 1.4.5, was released on December 4, 2025 (12 months ago).

Who makes Native PHP Sessions?

Native PHP Sessions is developed and maintained by Pantheon Systems.

What are the best alternatives to Native PHP Sessions?

The most popular alternatives to Native PHP Sessions are Akismet Anti-spam: Spam Pro… (5M+ installs), Disable Comments (1M+ installs) and Antispam Bee (700K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir