将会话数据推送到通过“<script>”包含的PHP文件

I have a small problem that I can't find an exact solution to.

I have a file called push.php that grabs required information from a database, stores the data via SESSIONS and then does a header redirect to listing.php.

Of course as you would expect, listing.php is able to use the session data and display the info.

There is an external php file called in using <script type="text/javascript" src="map.api.php"></script> that uses both JS and PHP to generate a map. In the map.api.php file it is not letting me echo the session data (and yes, I have started the file with session_start();)

How can I post the session data to map.api.php without having to reload the page?

I think you should use

include map.api.php;

instead of

<script src="map.api.php"></script>