//this can be used in wordpress plugin
add_action('init','mystartsession',1);
add_action('wp_logout','myendsession');
add_action('wp_login','myendsession');
function mystartsession()
{
if(!session_id())//session_id()used to generate session for system session in c
{
session_start();
}
}
function myendsession()
{
session_destroy();
}
?>
//to use create System or user session any where
<?php
global
$wpdb;
$sid=session_id();
?>
EmoticonEmoticon