I'm setting up a web application and want to send sms to my clients on a transaction. I bought the services from a broadcaster for sending sms. They provide me API for this purpose. By using the API when I send a request to broadcaster, they generate Authentication / Session ID that expires after 30 minutes of inactivity. How I can store that Session ID in my PHP variable.
<!DOCTYPE html>
<html>
<head>
<title>Get ID</title>
</head>
<body>
<form method="POST" >
<input type="hidden" name="msisdn" value="92345">
<input type="hidden" name="password" value="RN12345">
<input type="submit" name="submit" value="Get ID">
</form>
<?php
if (isset($_POST["submit"])) {
ob_start();
require_once 'https://telenorcsms.com.pk:27677/corporate_sms2/api/auth.jsp';
$output = ob_get_clean();
echo $output;
}
?>
</body>
</html>
I expect to return Authentication ID as output i.e. RE0123456789