So I recently clean installed Windows 10 on my laptop and began setting up my dev environment. I am currently working on 2 PHP applications built on top of Codeigniter, one is hosted in local XAMPP install and the other uses vagrant to provision a centos 7 VM with Apache, MySQL, PHP, Redis etc. The site running on local XAMPP install is accessable via http://localhost and the other is accessed through a domain setup in the hosts file to route the domain to the IP of the VM.
Here comes the issues, I can access both sites and everything appears to work as intended until I go to login to the sites and begin to use session data. For example, in the $_SESSION array I store login data and every time I login the data gets set but doesn't persist to the next page load.
Both these applications work without issue in the production environment and on other development machines. Same behaviour using Chrome, Firefox & Edge.
I am honestly stumped as to what the issue could be and could use a little help or even a hint as to where I should be looking.
Thanks in advance!