[COLOR=#444444][FONT=-apple-system]Hi[/FONT][/COLOR]
[COLOR=#444444][FONT=-apple-system]Ich habe eine private Seite / mit Passwort geschützt. Sie ist nur für eine Person und den Admin eingerichtet.[/FONT][/COLOR]
[COLOR=#444444][FONT=-apple-system]Gibt es eine Möglichkeit , dass WP nach jedem Aufruf das Passwort verlangt und es nicht speichert ? Ich weiß , dass man dies im Browser deaktivieren kann. Das woltte ich aber nicht.[/FONT][/COLOR]
[COLOR=#444444][FONT=-apple-system]Ich habe schon einiges probiert - auch über die funktions.php und auch install von Plugins . Bin aber bis jetzt nicht zum Ziel gekommen. Alles wieder auf alten Zustand zurück gesetzt . Ich las auch , dass man eventuell timeout ändern könnte . Komme aber nicht weiter weil einiges in den neuen WP Vers. nicht mehr kompatibel ist[/FONT][/COLOR]
[COLOR=#444444][FONT=-apple-system]Ich hoffe , hier gibt es Insider , die das bewältigen können .[/FONT][/COLOR]
[COLOR=#444444][FONT=-apple-system]VG[/FONT][/COLOR]
Cookies und Cache nach Seiten- schließen löschen
-
-
- Gerade eben
- Anzeige
Hallo!
Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.
- ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
- ✔️ Deutsche Server & DSGVO-konform
- ✔️ Persönlicher Support (kein 0815-Ticket-System)
-
Mit folgendem Plugin kannst du die Cookie Duration ändern:
https://wordpress.org/plugins/configure-login-timeout/ -
Hi-
[tr]
Habe es herunter geladen - Wollte es als Plugin einfügen kam aber Fehler ( poste ihn danach )
In WP direkt habe ich danach gesucht und es installiert / Setting gemacht und siehe unten geändert. Habe meine Testseite aufgerufen und eingeloggt. Nach 10 Min . brauchte ich immer noch kein Passwort / mit MS Edge und Google Chrome . Schau mal - habe ich was falsch gemacht ? Aktiviert ist das PL.
[h=2]Login timeout[/h][h=2]Timeout settings[/h]By default, the authentication cookies remembering is 2 days. When "Remember me" is set, the cookies will be kept for 14 days. This panel allows you to change these settings.[TABLE="class: form-table, width: 1129"]
[td]
[TH="align: left"]Default timeout (default: 2 days)[/TH]minute(s)hour(s)day(s)
[/td][/tr][tr]
[td]
[TH="align: left"]Remember me timeout (default: 14 days)[/TH]minute(s)hour(s)day(s)
[/td][/tr]
[tr]
[/TABLE]
[h=2]Special timeout settings based on user's capability[/h]You can set a different login timeout to Users with a specific capability.
eg. : You can set longer/shorter login timeout to Administrators using "edit_theme_options" capability. (see Roles and Capabilities in Wordpress Codex)[TABLE="class: form-table, width: 1129"]
[td][/td][/tr][tr]
[TH="align: left"]Activate special timeout settings[/TH]
[td]
[TH="align: left"]Select user capabilitie activating the special timeout (default: edit_posts)[/TH]activate_pluginsbackwpupbackwpup_backupsbackwpup_backups_deletebackwpup_backups_downloadbackwpup_jobsbackwpup_jobs_editbackwpup_jobs_startbackwpup_logsbackwpup_logs_deletebackwpup_settingscreate_usersdelete_others_pagesdelete_others_postsdelete_pagesdelete_pluginsdelete_postsdelete_private_pagesdelete_private_postsdelete_published_pagesdelete_published_postsdelete_themesdelete_usersedit_dashboardedit_filesedit_others_pagesedit_others_postsedit_pagesedit_pluginsedit_postsedit_private_pagesedit_private_postsedit_published_pagesedit_published_postsedit_theme_optionsedit_themesedit_usersexportimportinstall_pluginsinstall_themeslist_usersmanage_categoriesmanage_linksmanage_optionsmoderate_commentspromote_userspublish_pagespublish_postsreadread_private_pagesread_private_postsremove_usersrun_adminerswitch_themesunfiltered_htmlunfiltered_uploadupdate_coreupdate_pluginsupdate_themesupload_files
[/td][/tr][tr]
[td]
[TH="align: left"]Special timeout (default: 2 days)[/TH]minute(s)hour(s)day(s)
[/td][/tr][tr]
[td]
[TH="align: left"]Special Remember me timeout (default: 14 days)[/TH]minute(s)hour(s)day(s)
[/td][/tr]
[/TABLE] -
Was hat es außerdem bewirkt : Nicht die Cookies der gesperrten Seiten , wie schon beschrieben , aber dafür muß ich im Admin Dashboard bei jedem Seitenwechsel alle 2 Min. mein Passwort neu eingeben
-
jetzt komme ich als Admin nicht mehr rein - was nun ?
-
Konnte die Fehleinstellung mit FileZilla löschen.
Nun habe ich mit dem Link oben d . Plugin geladen und in WP installiert und aktiviert. Hier gibt es kein Setting und es kam foldende Meldung : [COLOR=#32373C][FONT=&]This plugin [/FONT][/COLOR][COLOR=#32373C][FONT=&]hasn’t been updated in over 2 years[/FONT][/COLOR][COLOR=#32373C][FONT=&]. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.Ich komme auch nicht mit den Einstellungen zurecht . Frage : was und wo muß man ändern , damit die Cookies nach einigen Minuten gelöscht werden ? Danke
[/FONT][/COLOR]
-
Versuch mal in der functions.php folgendes (mit eigenen Werten):
[COLOR=#303336][FONT=inherit]add_filter[/FONT][/COLOR][COLOR=#303336][FONT=inherit]([/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]'auth_cookie_expiration'[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]'my_expiration_filter'[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]99[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]3[/FONT][/COLOR][COLOR=#303336][FONT=inherit]);[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#101094][FONT=inherit]function[/FONT][/COLOR][COLOR=#303336][FONT=inherit] my_expiration_filter[/FONT][/COLOR][COLOR=#303336][FONT=inherit]([/FONT][/COLOR][COLOR=#303336][FONT=inherit]$seconds[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] $user_id[/FONT][/COLOR][COLOR=#303336][FONT=inherit],[/FONT][/COLOR][COLOR=#303336][FONT=inherit] $remember[/FONT][/COLOR][COLOR=#303336][FONT=inherit]){[/FONT][/COLOR][COLOR=#303336][FONT=inherit][/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//if "remember me" is checked;[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#101094][FONT=inherit]if[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]([/FONT][/COLOR][COLOR=#303336][FONT=inherit] $remember [/FONT][/COLOR][COLOR=#303336][FONT=inherit])[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]{[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//WP defaults to 2 weeks;[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
$expiration [/FONT][/COLOR][COLOR=#303336][FONT=inherit]=[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]14[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]24[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]60[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]60[/FONT][/COLOR][COLOR=#303336][FONT=inherit];[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//UPDATE HERE;[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#303336][FONT=inherit]}[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#101094][FONT=inherit]else[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]{[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//WP defaults to 48 hrs/2 days;[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
$expiration [/FONT][/COLOR][COLOR=#303336][FONT=inherit]=[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]2[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]24[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]60[/FONT][/COLOR][COLOR=#303336][FONT=inherit]*[/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]60[/FONT][/COLOR][COLOR=#303336][FONT=inherit];[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//UPDATE HERE;[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#303336][FONT=inherit]}[/FONT][/COLOR][COLOR=#303336][FONT=inherit][/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//http://en.wikipedia.org/wiki/Year_2038_problem[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#101094][FONT=inherit]if[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]([/FONT][/COLOR][COLOR=#303336][FONT=inherit] PHP_INT_MAX [/FONT][/COLOR][COLOR=#303336][FONT=inherit]-[/FONT][/COLOR][COLOR=#303336][FONT=inherit] time[/FONT][/COLOR][COLOR=#303336][FONT=inherit]()[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]<[/FONT][/COLOR][COLOR=#303336][FONT=inherit] $expiration [/FONT][/COLOR][COLOR=#303336][FONT=inherit])[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]{[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#858C93][FONT=inherit]//Fix to a little bit earlier![/FONT][/COLOR][COLOR=#303336][FONT=inherit]
$expiration [/FONT][/COLOR][COLOR=#303336][FONT=inherit]=[/FONT][/COLOR][COLOR=#303336][FONT=inherit] PHP_INT_MAX [/FONT][/COLOR][COLOR=#303336][FONT=inherit]-[/FONT][/COLOR][COLOR=#303336][FONT=inherit] time[/FONT][/COLOR][COLOR=#303336][FONT=inherit]()[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#303336][FONT=inherit]-[/FONT][/COLOR][COLOR=#303336][FONT=inherit] [/FONT][/COLOR][COLOR=#7D2727][FONT=inherit]5[/FONT][/COLOR][COLOR=#303336][FONT=inherit];[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#303336][FONT=inherit]}[/FONT][/COLOR][COLOR=#303336][FONT=inherit][/FONT][/COLOR][COLOR=#101094][FONT=inherit]return[/FONT][/COLOR][COLOR=#303336][FONT=inherit] $expiration[/FONT][/COLOR][COLOR=#303336][FONT=inherit];[/FONT][/COLOR][COLOR=#303336][FONT=inherit]
[/FONT][/COLOR][COLOR=#303336][FONT=inherit]}[/FONT][/COLOR] -
Danke - aber vorher die timeout easy / ist installiert . Hier der Code , weiß aber nicht was ich da ändern muß ? finde hier kein Code einfügen deshalb so :
Zitat
<?php
/**
* The file responsible for starting the Easy Timeout Session plugin
*
* The Easy Timeout Session is a plugin that allows you to change the
* session timeout for a wordpress user. This particular file is
* responsible for including the dependencies and starting the plugin.
*
* @package ETS
*
* Plugin Name: Easy Timeout Session
* Plugin URI: http://wordpress.org/plugins/easy-timeout-session/
* Description: Changes Timeout Session length
* Version: 1.1
* Author: Joaquin Ruiz
* Author URI: http://jokiruiz.com
*/// If this file is called directly, then abort execution.
if ( ! defined( 'WPINC' ) ) {
die;
}/**
* Include the core class responsible for loading all necessary components of the plugin.
*/
require_once plugin_dir_path( __FILE__ ) . 'includes/class-easy-timeout-session.php';/**
* Instantiates the Easy Timeout Session class and then
* calls its run method officially starting up the plugin.
*/
function run_easy_timeout_session() {$ets = new Easy_Timeout_Session();
$ets->run();}
run_easy_timeout_session();
/** THE END **/
-
-
Das Plugin Easy Timeout Session macht nichts anderes, als den Wert [FONT=courier new]$length[/FONT] im Filter auth_cookie_expiration() anzupassen, Dokumentation dazu:
ZitatFilters the duration of the authentication cookie expiration period.
Es passiert also genau das, was passieren soll, Du passt den Zeitraum an, nach dem Du Dich neu einloggen musst.
Mit den passwortgeschützten Seiten hat das nichts zu tun, wahrscheinlich suchst Du ein Plugin wie Password Protection Expiration o.ä.
-
hallo - leider englisch - dann habe ich das übersehen.Wie du sagst :was es soll - also nur die Adminanmeldung / das brauche ich nicht - kann es also wieder deaktivieren.
Zu Passwort Prot. Ich möchte lediglich , dass Besucher nach einer bestimmten Zeit sich immer wieder mit dem PW. anmelden müssen , ohne , dass es irgendwo gespeichert wird .Frage - macht dieses Plugin das ? - und wenn ja ist es mit der 4.8...WP kompatibel - ich hoffe du bleibst dran - Ich versuche das jetzt. Danke -
es scheint zu klappen,Würdest du es versuchen und mir bestätigen ? https://mpkasl.lima-city.de/wordpress/testseite/ Passwort : mkasl
Danke -
Hallo [COLOR=#20779F]b3317133 - du hast mir super geholfen - endlich klappt das jetzt.
VG[/COLOR]
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!