Login/Logout issues
Quote from tomp on January 14, 2018, 3:27 pmHello, I am running into issues with login and logout. New users can register, they get the email with a link to “reset password” page, that all seems fine. But when they go to the forums page and log in, it doesn’t seem to take effect. I can click “Login”, enter the username/password, no errors, get redirected back to the forums page, and still see the “You need to log in to create posts and topics” message.
To debug this, I turned off all the plugins (except Asgaros), switched themes, looked through my installation for any debug and error files, and found nothing. I also reinstalled Wordpress (version 4.9.1).
While debugging and re-arranging some things on the site I did get the login to work, no idea how. But then it stuck, and clicking “Logout” just took me over and over to the “Are you sure you want to log out?” page and never took effect. WP showed me as logged in regardless of what I did.
I’m almost sure that this isn’t an Asgaros issue, and instead something related to my WP install. Still, I would appreciate any help and suggestions — I have never needed users to register because until now it was a read-only site.
Site URL: http://www.collegiatepeakstu.org/forums
Thank you,
tom.
Hello, I am running into issues with login and logout. New users can register, they get the email with a link to “reset password” page, that all seems fine. But when they go to the forums page and log in, it doesn’t seem to take effect. I can click “Login”, enter the username/password, no errors, get redirected back to the forums page, and still see the “You need to log in to create posts and topics” message.
To debug this, I turned off all the plugins (except Asgaros), switched themes, looked through my installation for any debug and error files, and found nothing. I also reinstalled Wordpress (version 4.9.1).
While debugging and re-arranging some things on the site I did get the login to work, no idea how. But then it stuck, and clicking “Logout” just took me over and over to the “Are you sure you want to log out?” page and never took effect. WP showed me as logged in regardless of what I did.
I’m almost sure that this isn’t an Asgaros issue, and instead something related to my WP install. Still, I would appreciate any help and suggestions — I have never needed users to register because until now it was a read-only site.
Site URL: http://www.collegiatepeakstu.org/forums
Thank you,
tom.
Quote from Asgaros on January 14, 2018, 5:18 pmHello Tom,
this could be a caching-issue because when you login via the WordPress login-form while accepting the entered data, your are definitely logged-in into the system. But for some reasons the website still show you an old state (logged-out state). And after a while it seems that your website refreshes the cache because as you said: While debugging and re-arranging some things on the site I did get the login to work, no idea how.
Can you check the cache-settings of your webserver or possible cache-extensions which you are using for WordPress?
Hello Tom,
this could be a caching-issue because when you login via the WordPress login-form while accepting the entered data, your are definitely logged-in into the system. But for some reasons the website still show you an old state (logged-out state). And after a while it seems that your website refreshes the cache because as you said: While debugging and re-arranging some things on the site I did get the login to work, no idea how.
Can you check the cache-settings of your webserver or possible cache-extensions which you are using for WordPress?
Quote from tomp on January 14, 2018, 6:02 pmThank you, I appreciate your reply.
It seems that the main culprit was a setting mismatch between “Wordpress Address” and “Site Address” — I have WP installed in subdirectory. That seems to have resolved the login/logout issues.
Like you wrote, caching is still in issue, for some reason the browser is caching the “forums” page and the user doesn’t appear as logged in until they refresh the page. I’ll dig deeper into the browser cache settings.
Thanks!
Thank you, I appreciate your reply.
It seems that the main culprit was a setting mismatch between “Wordpress Address” and “Site Address” — I have WP installed in subdirectory. That seems to have resolved the login/logout issues.
Like you wrote, caching is still in issue, for some reason the browser is caching the “forums” page and the user doesn’t appear as logged in until they refresh the page. I’ll dig deeper into the browser cache settings.
Thanks!