Issue with JSON sending <p>Hey guys so I am trying to have a JSON send over a value to another page in wordpress to create a session once a image is clicked on. </p> <p>Here is the JSON code:</p> <pre><code>$('.item-post a').click(function() { var prodname = $('#hiddenpostitle'); $.post('/overviewcheck-515adfzx8522', { 'ProdName': prodname.val() }, function(response) { }, 'json' ); }); </code></pre> <p>The #hiddenposttitle is the following: <code>&lt;?php echo "&lt;input type='hidden' value='$title' id='hiddenpostitle' name='hiddenpostitle'/&gt; "?&gt;</code></p> <p>So this sends to the overviewcheck page, which then has a template that has the follow:</p> <pre><code>&lt;?php /* Template Name: overviewbackcheck */ session_start(); $prodname= $_POST['ProdName']; $_SESSION['overviewprod'] = $prodname; ?&gt; </code></pre> <p>Someone mentioned something about wordpress destroying sessions from calling session_start() but that's not the issue because I fixed that awhile ago, and have other sessions being made that work. It has to do something with the JSOn sending over and I am not to sure.</p> <p>From here the overview page is opened with the following:</p> <pre><code>$(function() { $('.item-post a').colorbox({opacity:0.3, href:"../overviewa512454dzdtfa"}); }); </code></pre> <p>This is the colorbox code that will open the file the within the file I have:</p> <pre><code>&lt;?php echo $_SESSION['overviewprod']; ?&gt; </code></pre> <p>to echo it out. </p> <p>Ultimately I am unable to echo out a session and it does not seem anything is being made.</p> <p>If you could help me out that would be awesome because I need this finished! :)</p>