Is there anyway to pass values from ASP.NET to PHP easily using Session or any other? I tried in the below way but it didn't work for me. Anybody either correct the below code or suggest me a way to pass values from ASP.NET to PHP without using URL query string.
ASP.NET code.
protected void Button1_Click(object sender, EventArgs e)
{
HttpCookie cookie = new HttpCookie("myvalue1");
cookie.Value = "joe@example.com";
Response.Redirect("Default.php");
}
PHP code.
<?php
session_start();
$_COOKIE['myvalue1'];
$cookies = getCookies();
$sessionId = $cookies['myvalue1'];
?>