Hi, thought I would like to give a feedback on some weird behaviour and let you guys see whether it is a bug or not...
Effect:
1. Admin appears to be logged in when I have actually logged out already
2. When i open a new browser and visit my SMF forum, it says Hello Admin...
What i did:
1. Login as Admin - Forever
2. Close window without logging out
3. Open new browser and login as a normal user (er... yes, when i went in, it did not say "Hello Admin..."
4. Log out, then login as Admin
5. When i try to logout, get error: cannot verify url -> go back and try again
6. Finally logged out.
7. From then on, when i visit my site, once in a while, i am "already" logged in as admin, sometimes not. And when i was at a friend's place, and showed him the site, it says "Admin" is logged in. Which of course, is a lie, since I am miles from home and my computer is turned off, dead as a door stop.
OK, hope the above was interesting. :) BTW, i am using v1.0.7 believing that this is the more stable version... :D
Hope that was useful.
You may have problems about your cookie settings, or some url settings. You may run repair_settings.php file to correct some mistakes.
What is repair_settings.php? (http://www.simplemachines.org/community/index.php?topic=18096.0)
OK, I solved the mystery... someone might want to post it into FAQ if it is a common problem. Here it goes and feel free to correct me if you all find anything wrong here:
1. Based on the symptoms of the problem listed below, i assumed it was a cookie issue. However, I discovered that it was actually a problem with the URL. In the link to my front page on my forum, it was http://mysite.com however, my forum is on http://www.mysite.com/forum
2. What i discovered was that if i went to http://mysite.com/forum everything was fine...
3. My conclusion is: My web host does something between http://mysite.com and the www redirection which messes up the SSI.php stuff. Just in case anyone else faces these issues with SSI.php, hope this will help.
Yes, I knew about that, because I had a similar www problem before. Just use repair_settings.php, by accessing it through internet using www prefix. It will correct things both for www and no www.
the cookies differentiate between www and no www...
If, in your forum set up, you have specified your forum url as mysite.com, then www.mysite.com is a different access...
if you want both available, then turn on subdomain independent cookies... because that is essentially what you are using, different subdomains.