From 556474c5b9db2afff94d288870b203bed3ff2cfb Mon Sep 17 00:00:00 2001 From: robiscool Date: Fri, 5 Aug 2011 18:19:02 -0700 Subject: orionids-dev, fix db save changes, fix foward slash error on chrom and ie9, add no cache php code --- config/orionids-dev/snort_json_get.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/orionids-dev/snort_json_get.php') diff --git a/config/orionids-dev/snort_json_get.php b/config/orionids-dev/snort_json_get.php index 701e75ae..92058a75 100644 --- a/config/orionids-dev/snort_json_get.php +++ b/config/orionids-dev/snort_json_get.php @@ -44,7 +44,12 @@ require_once("guiconfig.inc"); require_once("/usr/local/pkg/snort/snort_new.inc"); -session_start(); // alwaya at the very top of a php page or "Cannot send session cache limiter - headers already sent" +//Set no caching +header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); +header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); +header("Cache-Control: no-store, no-cache, must-revalidate"); +header("Cache-Control: post-check=0, pre-check=0", false); +header("Pragma: no-cache"); // get json blocls sids if ($_GET['snortsamjson'] == 1) { -- cgit v1.2.3