Implemented a new command, egw_clear, to clear http output cache.
[egate.git] / www / mquery.egw
index 364a8cd..849afba 100644 (file)
@@ -1,13 +1,13 @@
 <html>
-<head>
-<title> WWW/Z39.50 Gateway Query Form</title>
-</head>
-<body>
 {
-# $Id: mquery.egw,v 1.15 1996/03/13 14:07:29 adam Exp $
+# $Id: mquery.egw,v 1.17 1996/10/11 13:16:34 adam Exp $
 
     if {[info commands saveState] == ""} {
         source z39util.tcl
+        if {![info exists debug]} {
+            session-lost
+            egw_abort
+        }
     }
 
     global setNo
@@ -20,6 +20,8 @@
         set setNo 1
     }
 
+    html {<head><title> WWW/Z39.50 Gateway Query Form</title></head><body>}
+
     set useIcons 1
     button-main
     button-new-target
@@ -35,6 +37,7 @@
         if {$host != $phost} {
             set phost $host
             incr i
+            catch {unset hist($setNo,$i,database)}
             set hist($setNo,$i,host) $host
             set hist($setNo,$i,idAuthentication) [lindex $targets($host) 3]
         }