Comments/Ratings for a Single Item
That test worked, but then I removed some session id name stuff from the login() function. So this is another test.
Logging in is starting to be synchronized between the domain and the subdomain. I am getting rid of novel session names, and I am making sure the cookies get put on the .chessvariants.com domain. I am now trying to enter a comment while not already logged in again.
The particular page I was testing on play.chessvariants.com was a .php page that was running pass_okay() before the header was included. An .html page I tested did not have the same problem, and when I moved the pass_okay() below the inclusion of the header, it showed me as logged out.
Again, I logged out, and the play subdomain did not log out too. It appeared to create a duplicate session cookie on play.chessvariants.com. So I added a line of code to have it set it on .chessvariants.com. I'll now test if that worked.
That worked, but when I logged out, I remained logged into the play subdomain. I have now deleted the cookies I have in that subdomain, and I will try again.
No session cookies were created. I have now added code to the login function to create a new session if one doesn't already exist.
Session cookies deleted. Entering comment with password again.
To keep things straight, here is what is happening.
- When I enter a comment with my password, I do not remain signed in.
- When I enter my userid and password on the Game Courier logs page, I do remain signed in, but when I sign out, I remained signed in on the play domain but not the main domain.
- When I sign in through the menu, I can remain signed in until I sign out with the menu.
Entering this comment without signing in first.
This is a test comment for testing code with. I am writing this at 3:18 EDT.
12 comments displayed
Permalink to the exact comments currently displayed.
And that last test worked. Logging in should now be synchronized between the main domain and the play subdomain. When you sign in at one, you'll be signed into both, and when you sign out of one, you'll be signed out of both. If you notice that it doesn't work this way on any page, please let me know.