From 8005eb2eeae242a1fd5b14f44e592c64ad9f92f5 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Wed, 27 Jun 2012 23:42:27 -0400
Subject: [PATCH] No cache revisited

---
 include/staff/header.inc.php | 4 +++-
 main.inc.php                 | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/staff/header.inc.php b/include/staff/header.inc.php
index c48ee8b36..090397036 100644
--- a/include/staff/header.inc.php
+++ b/include/staff/header.inc.php
@@ -2,6 +2,8 @@
 <html>
 <head>
     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+    <meta http-equiv="cache-control" content="no-cache" />
+    <meta http-equiv="pragma" content="no-cache" />
     <title>osTicket Staff Control Panel</title>
     <!--[if IE]>
     <style type="text/css">
@@ -23,7 +25,7 @@
     }
     ?>
 </head>
-<body>
+<body onunload="">
 <div id="container">
     <div id="header">
         <a href="index.php" id="logo">osTicket - Customer Support System</a>
diff --git a/main.inc.php b/main.inc.php
index 8fbe9c317..155e4c852 100644
--- a/main.inc.php
+++ b/main.inc.php
@@ -34,6 +34,7 @@
     ini_set('session.use_trans_sid', 0);
     #No cache
     ini_set('session.cache_limiter', 'nocache');
+    session_cache_limiter('nocache');
     #Cookies
     //ini_set('session.cookie_path','/osticket/');
 
-- 
GitLab