How can I take jquery id in session
<p>This is my jQuery code for taking id value when I click <code>itemslist</code> </p>

<pre><code>$(document).ready(function() { 
  $('.itemslist ul li').click(function()
    { $id = $(this).attr("class"); 
   }); 
});
</code></pre>

<p>But session is not taking that id value </p>

<pre><code>session_start(); 

$_SESSION['catname'] = $id;

$id= $_SESSION['catname']; 

session_destroy(); 
</code></pre>

<p>Can any one please say the answer about this?</p>
