I have an IIS server with multiple virtual hosts running from the default site, these host all use PHP and create login sessions daily.
I recently added a new site (new domain) in IIS and the virtual directories I put in this site cant't create PHP sessions. I tried the following basic test which works in the default website.
session_start();
$_SESSION['test'] = 'my_test_value';
echo $_SESSION['test'];
So I load the page to store the session value then comment out the second line and load again and I get..
PHP Notice: Undefined index: test
Have I configured the site incorrectly or do I need to enable something in PHP, like I said the default site has not problems creating sessions, and this is the first time I have added a second site to IIS so I am a bit of a newbie.