includes/functions/sessions.php
ca. Zeile 16
Standard liest die in der Server PHP Konfiguration definierte Sessiondauer aus:
Code:
if (IS_ADMIN_FLAG === true) {
$SESS_LIFE = (int)SESSION_TIMEOUT_ADMIN;
// if strict is enabled, must be a max of 900
if (PADSS_ADMIN_SESSION_TIMEOUT_ENFORCED != 0 && $SESS_LIFE > 900) {
$SESS_LIFE = 900;
}
} else {
// read PHP config
$SESS_LIFE = get_cfg_var('session.gc_maxlifetime');
// override if set
if (defined('SESSION_TIMEOUT_CATALOG') && (int)SESSION_TIMEOUT_CATALOG > 120) {
$SESS_LIFE = (int)SESSION_TIMEOUT_CATALOG;
}
// if set toooo short, reset to default
if ((int)$SESS_LIFE < 120) {
$SESS_LIFE = 1440;
}
}
Falls nicht gewünscht und eine eigene Konfiguration verwendet werden soll:
z.B.
Adminbereich: 3600 Sekunden
Frontend: 86400 Sekunden
ändern auf:
Code:
if (IS_ADMIN_FLAG === true) {
if (!$SESS_LIFE = (SESSION_TIMEOUT_ADMIN > 3600 ? 3600 : SESSION_TIMEOUT_ADMIN)) {
$SESS_LIFE = (SESSION_TIMEOUT_ADMIN > 3600 ? 3600 : SESSION_TIMEOUT_ADMIN);
}
} else {
$SESS_LIFE = 86400;
}
Lesezeichen