Enable Custom Sessions in WordPress Blog Posted in PHP on December 19, 2013 by admin You need to check whether register_globals is On / Off. Register_globals must be Off to enable Custom Sessions in WordPress Blog also you need to add a array item _SESSION in file wp-includes/load.php function wp_unregister_GLOBALS() // Variables that shouldn’t be unset $no_unset = array( ‘_SESSION’, ‘GLOBALS’, ‘_GET’, ‘_POST’, ‘_COOKIE’, ‘_REQUEST’, ‘_SERVER’, ‘_ENV’, ‘_FILES’, ‘table_prefix’ ); Sessions are now enabled in WordPress! You can now use PHP sessions on your WordPress custom plugins. ← Gallery