From dceb4ca3ca8b3a005fa6647aaddfcf4e9327a5ea 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 --- apps/3cx/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/3cx/restapi/custom/api.pm b/apps/3cx/restapi/custom/api.pm index 568019210..158365246 100644 --- a/apps/3cx/restapi/custom/api.pm +++ b/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); }