How to use PHP session in wordpress

Use PHP session in wordpress.

add_action(‘init’, ‘myStartSession’, 1);
function myStartSession() {
if(!session_id()) {
session_start();
}
}

The post How to use PHP session in wordpress appeared first on wpcodekit.

Leave a Reply

Your email address will not be published. Required fields are marked *