From a35211e427a603afa61416116610bba13b2081d9 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 7 Oct 2025 00:24:39 +0200 Subject: [PATCH] Increase session cookie duration. --- apps/aqhome-cgi/modules/common/mservice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/aqhome-cgi/modules/common/mservice.c b/apps/aqhome-cgi/modules/common/mservice.c index bd170f6..0ae0754 100644 --- a/apps/aqhome-cgi/modules/common/mservice.c +++ b/apps/aqhome-cgi/modules/common/mservice.c @@ -352,9 +352,8 @@ AQH_SESSION *AQH_ModService_ReadSession(AQH_MODULE *m, AQCGI_REQUEST *rq) AQH_Session_SetUser(session, user); } /* renew session cookie */ - tbuf=GWEN_Buffer_new(0, 256, 0, 1); - GWEN_Buffer_AppendArgs(tbuf, "Set-Cookie: session=%s; max-age=3600", AQH_Session_GetUid(session)); + GWEN_Buffer_AppendArgs(tbuf, "Set-Cookie: session=%s; max-age=86400", AQH_Session_GetUid(session)); AQCGI_Request_AddResponseHeaderData(rq, GWEN_Buffer_GetStart(tbuf)); DBG_ERROR(NULL, "Renew session cookie"); GWEN_Buffer_free(tbuf);