minisrv remembers sessions for 180 seconds, so allow the user to clear the minbrowser flag

This commit is contained in:
zefie
2024-05-20 19:50:42 -04:00
parent f07510cfc4
commit f9bf10fd17
3 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
var minisrv_service_file = true;
// remove restrictions once this page is shown, since the user will be 'trapped' anyway
session_data.disableLockdown();
ssid_sessions[socket.ssid].delete("wtv-need-upgrade")
ssid_sessions[socket.ssid].delete("wtv-")
headers = `200 OK
Content-type: text/html
wtv-expire: wtv-home:
wtv-visit: wtv-home:/home`;
data = '';