This is my jQuery code for taking id value when I click itemslist
$(document).ready(function() {
$('.itemslist ul li').click(function()
{ $id = $(this).attr("class");
});
});
But session is not taking that id value
session_start();
$_SESSION['catname'] = $id;
$id= $_SESSION['catname'];
session_destroy();
Can any one please say the answer about this?