Saturday 1 August 2015

[Web-development (jquery)] Using Sessions in WordPress Plugins

Using Sessions in WordPress Plugins
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:

/** * 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

Contact Us

Name

Email *

Message *

All content at imdelgado fasion style was found freely distributed on the internet and is presented for informational purposes only.
Images / photos / videos found in this site reserved by its respective owners.
We does not upload or host any files.
Home | DMCA | Contact