So http://example.com/test.php generates a PHP Session cookie for the client.
So I do
file_get_contents("http://example.com/test.php");
But it returns me only the HTML source (no headers).
How do I get the PHPSESSID that was set by that page? I don't want to use CURL or addons.
Thanks!