Tagged: login
some of my users complaining that each time they entered the website they need to login again (i think after they close the window..lets say when they got an email notification, clicking on the link). what can i do ? it’s a very bad UX
just in case it is imortant to say, i have this code in my functions.php:/**
* Block wp-admin access for non-admins
*/
function ts_block_wp_admin() {
if ( is_admin() && current_user_can(‘subscriber’) && ! ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) ) {
wp_safe_redirect( home_url() );
exit;
}
}
add_action( ‘admin_init’, ‘ts_block_wp_admin’ );I will really appreciate your help!
Hi,
By default, WordPress remembers the login for 24 hours(in browser) and 14 days(if the remember me is checked).If they are complaining, they are most probably opening site in incognito mode and there is no solution for that.
Otherwise, you may want to investigate if any of the security related plugin you are using and if they are limiting it.
Regards
BrajeshThis might help I use this plugin to extend user login session https://wordpress.org/plugins/remember-me-controls/
Hi,
I am sorry but it does not seem to be a common issue.Have you been able to replicate what your users say? Do you have any caching plugin enabled? Try disabling and then check.
Regards
Brajesh
You must be logged in to reply to this topic.