mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
session-timeout immediately invalidates the session
This commit is contained in:
@@ -192,7 +192,8 @@ void expire_client_entry(sec_mod_st *sec, client_entry_st * e)
|
||||
if (e->in_use == 0) {
|
||||
e->time = time(0);
|
||||
|
||||
if (sec->config->persistent_cookies == 0 && (e->discon_reason == REASON_USER_DISCONNECT || e->discon_reason == REASON_SERVER_DISCONNECT)) {
|
||||
if (sec->config->persistent_cookies == 0 && (e->discon_reason == REASON_USER_DISCONNECT
|
||||
|| e->discon_reason == REASON_SERVER_DISCONNECT || e->discon_reason == REASON_SESSION_TIMEOUT)) {
|
||||
seclog(sec, LOG_INFO, "invalidating session of user '%s' "SESSION_STR,
|
||||
e->auth_info.username, e->auth_info.psid);
|
||||
/* immediately disconnect the user */
|
||||
|
||||
Reference in New Issue
Block a user