Frontend: Session storage fixes

This commit is contained in:
2023-09-23 14:10:19 +02:00
parent e5e82db490
commit 8d60bb55bc
2 changed files with 16 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ sub handlePath {
my $response = frontend::getBaseResponse(301, "OK");
$response.="Location: /\r\n";
$response.="Content-Length: 0\r\n";
$response.="Set-Cookie: session=$token\r\n\r\n";
$response.="Set-Cookie: session=$token;expires=".localtime(time()+7*24*3600)."\r\n\r\n";
$aClient->send($response);
return 1;
}