/* In order to use SESSION with AJAX etc in Wordpress. you must use add_action to hook into 'wp' */
add_action('wp', 'rk_start_session');
function rk_start_session() {
global $post;
//if you want to use anything from the $post variable you can
if(!session_id()):
session_start();
endif;
}