From 431b2ef914e53cc84a86c42712fa385f0442f625 Mon Sep 17 00:00:00 2001 From: CPbN Date: Sun, 7 Apr 2019 16:54:17 +0200 Subject: [PATCH] Cookie expires after one month --- centreon-plugins/apps/3cx/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/3cx/restapi/custom/api.pm b/centreon-plugins/apps/3cx/restapi/custom/api.pm index 568019210..158365246 100644 --- a/centreon-plugins/apps/3cx/restapi/custom/api.pm +++ b/centreon-plugins/apps/3cx/restapi/custom/api.pm @@ -164,7 +164,7 @@ sub get_cookie { $self->{output}->option_exit(); } - my $datas = { last_timestamp => time(), cookie => $cookie, expires_on => time() + 7200 }; + my $datas = { last_timestamp => time(), cookie => $cookie, expires_on => time() + (3600 * 24) }; $options{statefile}->write(data => $datas); }