Hello!
I have a problem that is causing me fits and I have no idea what is causing it or how to fix it - but I can reproduce it consistently.
We have 3 environments in our work flow - development, staging, and production. The dev and stg environments are subdomains of the production environment BUT they are all on different servers. Meaning - production is domain.com on production server, staging is stg.domain.com on a staging server and development is dev.domain.com on a development server.
We use a cookie to determine if users are logged in or not. We set the cookie at login and then check for it on every subsequent page. Here is the problem I am having:
In IE, I log in to the production domain, do some work, then logout. Then I go to the dev.domain and try to login, it will not remember the cookie set from the dev.domain login page. I can make this happen 100% of the time in both IE7 and IE8. I cannot make it happen in Firefox. I have placed response output on the login page to verify that the cookie gets set. Then if I place the same response output on the next page, the cookie is empty. I can close the browser, and re-open it and then login to the dev.domain with no issues. However if I then logout and try to go to stg or production - same thing.
Anyone have any ideas on what's going on here? I have been Googling all morning and haven't found anything yet.
I have a problem that is causing me fits and I have no idea what is causing it or how to fix it - but I can reproduce it consistently.
We have 3 environments in our work flow - development, staging, and production. The dev and stg environments are subdomains of the production environment BUT they are all on different servers. Meaning - production is domain.com on production server, staging is stg.domain.com on a staging server and development is dev.domain.com on a development server.
We use a cookie to determine if users are logged in or not. We set the cookie at login and then check for it on every subsequent page. Here is the problem I am having:
In IE, I log in to the production domain, do some work, then logout. Then I go to the dev.domain and try to login, it will not remember the cookie set from the dev.domain login page. I can make this happen 100% of the time in both IE7 and IE8. I cannot make it happen in Firefox. I have placed response output on the login page to verify that the cookie gets set. Then if I place the same response output on the next page, the cookie is empty. I can close the browser, and re-open it and then login to the dev.domain with no issues. However if I then logout and try to go to stg or production - same thing.
Anyone have any ideas on what's going on here? I have been Googling all morning and haven't found anything yet.