运行wordpress是否需要会话功能以及如何配置它?

运行wordpress是否需要会话功能以及如何配置它?

您认为 wordpress 需要启用 php 功能才能正常且安全地运行吗?

我已经设置了这样的会话:

session.auto_start      = Off
session.save_path       = /tmp/phpsession
session.name            = JARENGGONSESSION
session.hash_function   = 1 
session.hash_bits_per_character = 6
session.use_trans_sid   = 0
session.cookie_domain   = domain.com
#session.cookie_path     = /application/path/
session.cookie_lifetime = 0
session.cookie_secure   = On
session.cookie_httponly = 1
session.use_only_cookies= 1
session.cache_expire    = 30
default_socket_timeout  = 60

当我使用此脚本检查时:

<?php
// Start Session
session_start();
// Show banner
echo '<b>Session Support Checker</b><hr />';
// Check if the page has been reloaded
if(!isset($_GET['reload']) OR $_GET['reload'] != 'true') {
   // Set the message
   $_SESSION['MESSAGE'] = 'Session support enabled!<br />';
   // Give user link to check
   echo '<a href="?reload=true">Click HERE</a> to check for PHP Session Support.<br />';
} else {
   // Check if the message has been carried on in the reload
   if(isset($_SESSION['MESSAGE'])) {
      echo $_SESSION['MESSAGE'];
   } else {
      echo 'Sorry, it appears session support is not enabled, or you PHP version is to old. <a href="?reload=false">Click HERE</a> to go back.<br />';
   }
}
?>

php 会话未启用

相关内容