Cannot Use Rename Login Force Logout with WooCommerce
-
Before you dismiss me because I am using WooCommerce, please read my entire post.
I believe there may be an issue with using the Rename Login and Force Logout features together with or without WooCommerce. I came across this recent thread where the user was having an issue with these two features together. The user “resolved” the issue by disabling the Rename Login feature, but I do not see that as an acceptable resolution. Features bundled within your plugin should be able to work together. It seems to me that it’s very likely there is an issue with your Force Logout feature not redirecting properly when the login URL is anything but the default wp-login.php.
Anyway, my additional issue with WooCommerce is with customer registration from the My Account page. When I have Force Logout enabled and try to register a new customer account, I get a 404 error and the following URL:
https://www.mysite.com/store/wp-login.php?redirect_to=https://www.mysite.com/store/my-account/&aiowps_login_msg_id=session_expired
The user account does get registered, but the user’s session is considered expired, and a 404 error is generated apparently due to the Rename Login feature being enabled. Disabling the Force Logout feature allows for registration to work properly (user is logged in and taken to the My Account page as expected) even with Rename Login enabled.
On a side note, and as a possible resolution to this issue, I would wish for the option to enable Force Logout for Admins, Authors, etc. and not for Subscribers, Customers, etc. (i.e., users with read-only access). I’m not that concerned with forcing read-only users to log out after a certain period, but I would like to do so for users with access to the admin area. Furthermore, if the 404 error occurs when I’m logged in as admin, I know what the problem is and can deal with it. However, this would be a frustrating and annoying issue for subscribers and customers.
Thank you for reading.
https://www.ads-software.com/plugins/all-in-one-wp-security-and-firewall/
- The topic ‘Cannot Use Rename Login Force Logout with WooCommerce’ is closed to new replies.