I am Working on a Project, I need some clarification to share data between two sites in a high secure manner. Currently I am using Form Post to share data. But I think about if there is an option to get site-1 session-data from site-2, because I think using a session is more secure. I don't know how to use a sessions between two sites, but I hope someone here will know.
Site 1 Coding
$_SESSION['cust_id'] = 'abc';
$_SESSION['amount'] = '999';
<a href=https://site2.com/direct.php?session_id=<?=$_SESSION['session_id']?>>Click Here</a>
Site 2 Code in direct.php
$session_id = $_REQUEST['session_id'];
$shared_data = XYZ_function($session_id);
$cust_id = $shared_data['cust_id'];
$amount = $shared_data['amount'];
or is there any way to do the secure data sharing between two website other than form post, please tell me.