, but I cant seem to make a session variable available to another snippet.$_session['searchResult'] = $_POST['search']; echo '<p>Session search = ' . $_session['searchResult'] . '</p>';
<a href="[[~[[*id]]? &callid=`[[+callid]]` &diallednumber=`[[diallednumber]]']]"><button type="button" class="btn btn-danger">Delete</button>
if(isset($_GET['callid'])){
$id = $_GET['callid'];
$deleteRow = $modx->myDB->getObject('LogData',array('callid' => $id));
echo $id . '<p> has been deleted</p>';
echo '<p>Session search = ' . $_session['searchResult'] . '</p>';
return;
};
Notice: Undefined variable: _session in /home/sites/paradoxal.co.uk/public_html/nhs/core/cache/includes/elements/modsnippet/25.include.cache.php on line 18
This question has been answered by sottwell. See the first response.