Is it possible to read a session variable set by a separate PHP file using Classic ASP?
I have these files:
/index/blah.asp:
```
<%@ language = "Javascript" %>
<!-- #include file="globals/prototypes.asp" -->
<!-- #include file="includes/blah.asp" -->
```
/includes/blah.asp:
```
<%
var obj = Server.CreateObject("MSXML2.ServerXMLHTTP");
obj.open("GET", "http://localhost/index/includes/blah.php", false);
obj.send();
Response.Write(obj.responseText);
for (var i in Session.Contents) {
Response.Write("Session.Contents(\"" + i + "\") = " + Session.Contents(i) + "<BR /><BR />");
}
%>
```
/includes/blah.php:
```
<?php
$str = 'Hello World';
echo '$str = ' . $str . "<Br /><BR />";
$_SESSION['helloworld'] = $str;
?>
```
The reason for this is to prevent having to change an entire section of a website from ASP to PHP, thus, altering the forward-facing URL which currently ends in "*.asp" and has done for years, but the means of dynamically populating its content could possibly be changed from ASP to PHP, using session variables to pass back and forth.
If not possible, then everything will remain in Classic ASP and I'll call it a day, but at least I figured I would ask in case I missed something.
Thanks