txn_id is a long transaction id generated and posted by a credit card processor. I want to check txn_id against abc_id down the road on another page within the same session. The idea is not to allow anyone to enter page2 directly unless both txn_id and abc_id match. How would I set this up? Thanks
txn_id is posted to this page1:
<?session_start();
$SESSION["txn_id"] = "$txn_id";
$SESSION["abc_id"] = "$abc_id";
$txn_id = $_POST['txn_id'];
?>
page 2:
<?
session_start();
if ($txn_id == $abc_id) {
echo "display proper page";
}
else "ERROR";
?>