Hello,
I have two identical sites hosted with two different ISPs; one has login/logout issues, the other does not. The only difference is there is a PHP Conncetion file that points to the MySQL database at each hosting server. The databases are identical, same name, same tables, it was a copy.
The fully functional site was uploaed to the other hosting company server. I then changed the 4 connection variables on my connection PHP file; 1-MySQL DB server name, 2-database name, 3-user name, 4-password. Other than that, every line of code is identical between the sites. I even ran them through source code compare tools.
I am having various auto-logout issues. One example is that when I add to the shopping cart by clicking the add-to-cart button, I end up on the add-to-cart page as I should but I have a "your shopping cart is empty", and I am now logged out. My site requires the user to be logged in to buy.
Another example is when a new user registers they are auto-logged in. On one site this works fine, on the other site after registering they are directed to the login page indicating the auto-login failed.
I positive the code and databases are identical between the sites.
Has anyone ever experienced this before? Any suggestions? I was thinking that the PHP server settings are different on the two servers, so I created a PHP info page and compared them side by side, but I simply do not have the skills to know what setting could cause these session issues and the auto-logout. I have been on this for almost 2 weeks and simply have to get this done.
Thanks in advance