From 15728e27ca6c4a827be2fd486e1e91f984d7d939 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Tue, 7 Oct 2025 00:26:35 +0200 Subject: [PATCH] aqhome-cgi: increased session cookie duration. --- apps/aqhome-cgi/modules/mroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/aqhome-cgi/modules/mroot.c b/apps/aqhome-cgi/modules/mroot.c index b2093a2..84e9b74 100644 --- a/apps/aqhome-cgi/modules/mroot.c +++ b/apps/aqhome-cgi/modules/mroot.c @@ -227,7 +227,7 @@ int _handleRqLoginPost(AQH_MODULE *m, AQCGI_REQUEST *rq, GWEN_BUFFER *dbuf) /* add Set-Cookie header */ 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)); GWEN_Buffer_free(tbuf);