I am using a Wampp server inside a corporate network. My pages are using PHP.
The logging of users is handled by cookies and session variables. It has worked without issues for 10+ years.
The company is upgrading all PC's to windows 10. Now we can't stay logged in using IE11 Version: 11.829.17134.0 . The cookies are not being retrieved after browser is closed and re-opened.
My php statement for setting the cookie is:
setcookie('user', $row['user'], time()+60*60*24*365, '');
I omitted the domain parameter at the end, as this was the only way to make it work, prior to Windows 10. Now this doesn't work any longer. The server has no domain name and is accessed by the computer name (AF865527:2700).
I've tried many other names in the domain field for the cookie command, but none works.
After logging in, the cookie variables are set and can be see with print_r($_COOKIE), but after closing the browser, and re-opening, the cookie variables are empty. They are not being stored on client computer.
Is there any way to store cookies with no domain name? It works fine in Chrome and Firefox.
Thanks,
Clayton