What can be the reason? I have tried disabling the plugins but that didn’t help. Some one please help.
]]>while I am working in WordPress I will be logged out automatically at irregular intervals. All pages of the project that I have opened in tabs (except backend) are duplicated at this moment and saved as a draft. The draft will then have the same permalink as the published page.
I noticed this in two completely different projects.
s-tec-germany.de
aha-haag.de
Does anyone know why?
Many thanks and best regards
Florian
—————————————————————-
Hallo zusammen,
w?hrend ich in WordPress arbeite werden ich in unregelm??igen Abst?nden automatisch ausgeloggt. Alle Seiten des Projektes die ich in Tabs ge?ffnet habe (au?er Backend) werden in diesem Moment dupliziert und als Entwurf abgelegt. Der Entwurf besitzt dann den identischen Permalink wie die ver?ffentlichte Seite.
Das ist mir nun bei zwei v?llig unterschiedlichen Projekten aufgefallen.
s-tec-germany.de
aha-haag.de
Wei? jemand woran das liegen kann.
Vielen Dank und beste Grü?e
Florian
The setting is currently at 3 minutes. Even if I visit another page on my website after 3 minutes, I’ll press the back button and I’ll still be logged in.
Is there any setting other than the cookie expiring time where automatic log out can be enabled?
Any information and guidance would be greatly appreciated.
]]>Will Group give me that?
I understand you have a Group-log-in code that I should add. Where do I add it? How is the password constructed? Is it possible to have one password for all members? Is there a redirect page where all others end up?
Hope you can help me, I have been checking member plugins a few months and am kind of tired.
Best regards
Suzanne
https://www.ads-software.com/plugins/groups/
]]>I am working on setting up a website that is very basic. When the address is entered it will take the use automatically to a
1. LOGIN screen – here it will display NAME/PASSWORD/Forgot Password. Admin controls who can login.
Once they login it will automatically open up the main page (only page)
2. ONLINE FORM – here the employee will fill out a form which will have required fields. Once completed the will hit submit
3. SUBMIT – once they successfully submit the form the follow up screen will automatically logout the user. If there is an easier way to this i.e. give use option to go back to ONLINE FORM or LOGOUT, that is fine.
If I am missing any steps in designing the website your advice is greatly appreciated.
Thank you
]]>I?m using this code (from an old not maintained plugin) for logout inactive users:
// -----------------------HOOKS--------------------------------
add_action('wp_login', 'automatic_sign_out_update_last_activity_on_login_event', 1);
add_action('get_header', 'automatic_sign_out_inactivity_event', 1);
add_action('admin_init', 'automatic_sign_out_inactivity_event', 1);
// Stores time of last activity into cookie
define('AUTOMATIC_LOG_OUT_LAST_ACTIVITY_TIME', 'bry_time');
//-----Redirect User to this page on Automatic Log Out------------
/*Adjust this variable to change the location to where the logged out user
will be redirected to. If you don't want to redirect the user anywhere,
then leave it as site_url() */
//define('AUTOMATIC_SIGN_OUT_REDIRECT_ADDRESS', site_url());
define('AUTOMATIC_SIGN_OUT_REDIRECT_ADDRESS', "https://www.test.se/login");
//-----Maximum time allowed before logged out for inactivity----------
/*Adjust this variable to change the maximum time. The time unit is
seconds. This means that 60*60*24 is equal to 1 day. Why? because
60 seconds * 60 minutes * 24 hours = 1 day */
//define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60*60*24); // 1 day
//define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60*60); // 1 hour
define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60*20); // 20 min
//define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 60); // 1 minute
//define('AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME', 20); // 20 sec only for testing
//-------------------------------------------------------------------
/* This function logs the user out then immediately redirects them to the specified page.
If no page is specified, then they will just be logged out and won't be redirected anywhere */
function automatic_signout_perform_logout_event() {
wp_logout();
wp_redirect(AUTOMATIC_SIGN_OUT_REDIRECT_ADDRESS);
}
function automatic_sign_out_activate() {
automatic_sign_out_update_last_activity_event();
}
function automatic_sign_out_inactivity_event() {
if (is_user_logged_in()) {
$last_activity_time = AUTO_SIGN_OUT_GET_TIME_OF_LAST_ACTIVITY();
if ($last_activity_time + AUTOMATIC_SIGN_OUT_MAXIMUM_INACTIVITIY_TIME < time()) {
// log out
automatic_signout_perform_logout_event();
}else {
// Stay logged in and update cookie
automatic_sign_out_update_last_activity_event();
}
}
}
// This function gets the last time of activity
function AUTO_SIGN_OUT_GET_TIME_OF_LAST_ACTIVITY() {
if (is_user_logged_in()) {
return (int) get_usermeta(get_current_user_id(), AUTOMATIC_LOG_OUT_LAST_ACTIVITY_TIME);
}else {
return 0;
}
}
// This function sets the last active time on login.
function automatic_sign_out_update_last_activity_on_login_event($username) {
$now = time();
try {
$user_id = get_userdatabylogin($username)->ID;
if ($user_id != null && $user_id > 0) {
update_usermeta($user_id, AUTOMATIC_LOG_OUT_LAST_ACTIVITY_TIME, $now);
}
}catch (Exception $ex) {
}
}
function automatic_sign_out_update_last_activity_event() {
if (is_user_logged_in()) {
$now = time();
update_usermeta(get_current_user_id(), AUTOMATIC_LOG_OUT_LAST_ACTIVITY_TIME, $now);
}
}
register_activation_hook( __FILE__, 'automatic_sign_out_activate' );
Now I want to add in a message when logout happens, like “Due to inactivity please login again”.
Any idea if its possible to solve this and how?
Per
]]>