0

I have two subdomains in the same parent folder on the same disk on the same physical server, operating under the same instance of Apache2 and all its mods. How do I know the folders are identical? Because I did this:

cd ~/projects/subdomain2
rm -rf *
cd ../
cp -rf --preserve=all subdomain1/* subdomain2/

I'm having a very specific problem on subdomain2 - specifically, IE refuses to maintain sessions for the webapp my team's developing in subdomain2, but subdomain1 the sessions are preserved correctly between page loads. That's neither here nor there; at this point I don't care why is isn't working, only that subdomain1 solves that problem...somehow. What I am asking is, why would two identical directories, with the same .htaccess rules and the same virtualhost configurations, behave differently? Any other guesses what might be causing the inconsistencies?

2
  • Where are the sessions stored ? Are there any relevant messages in your logs ?
    – user9517
    May 13, 2014 at 5:58
  • Sessions are being handled by memcached. There is an error log being generated by the application for subdomain2 that isn't being generated by subdomain1, but it's not being thrown and handled by the application's error handler, just sent to the log. Which is...weird.
    – tmountjr
    May 13, 2014 at 15:50

1 Answer 1

1

For other visitors' benefit, we solved the issue. (I work with mounty.) The issue was that subdomain1 was actually sub_domain1 (i.e., included an underscore), and IE doesn't accept cookies from domains with underscores. Technically this is not a bug, as IE is following the RFC-2396 spec more strictly, but it's the only browser to do so.

Authority: http://support.microsoft.com/kb/316112

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.