I have website A i need to pass info to website B.
website A a user is logged in, using the current session on website A i will collect UserID from the session and i want to post UserID and UniID=3 to a data structure on website B that will store the data in variables that can be used in a post query from website B
I was thinking of using simple JavaScript like (on website A)
<div id="linkto"> <p>www.websiteb.com/&uniId=3 <P></div>
$('linkto').on('click',function(event){
UserId['UserId'] = $UserId
$(post).(url'www.websiteb.com', data );
});
then collecting the UserID and UniID somehow and then using them as variables in a post query
My question is this the correct way of going about it, I basically need to collect UserID from one website and use it on another website