Using Sessions in WordPress Plugins
In your theme/plugin
Add the next piece of code to your functions.php or plugin file to enable sessions:
In your theme/plugin
Add the next piece of code to your functions.php or plugin file to enable sessions:
/** * init_sessions() * * @uses session_id() * @uses session_start() */function init_sessions(){if(!session_id()){session_start(); }} add_action('init', 'init_sessions');
source : http://hipwee.com, http://detik.com, http://tutorial101.blogspot.com
No comments:
Post a Comment