Skip to content
Permalink
Browse files
No cache for logged sessions
  • Loading branch information
remdex committed Oct 5, 2021
1 parent 1f6a513 commit 954337c8f449503ac70b6ce1acdcc40dc75790b8
Showing with 10 additions and 0 deletions.
  1. +3 −0 lhc_web/lib/core/lhcore/lhmodule.php
  2. +4 −0 lhc_web/modules/lhchat/chat.php
  3. +3 −0 lhc_web/modules/lhchat/chatwidgetchat.php
@@ -38,6 +38,9 @@ static function runModule()
{
// Just to start session
$currentUser = erLhcoreClassUser::instance();
header('Cache-Control: nocache, no-store, max-age=0, must-revalidate');
header('Pragma: no-cache');
header('Expires: Sun, 02 Jan 1990 00:00:00 GMT');

if (!$currentUser->hasAccessTo('lh'.self::$currentModuleName,$Params['module']['functions']))
{
@@ -1,5 +1,9 @@
<?php

header('Cache-Control: nocache, no-store, max-age=0, must-revalidate');
header('Pragma: no-cache');
header('Expires: Sun, 02 Jan 1990 00:00:00 GMT');

$tpl = erLhcoreClassTemplate::getInstance( 'lhchat/chat.tpl.php');

if (isset($Params['user_parameters_unordered']['theme']) && (int)$Params['user_parameters_unordered']['theme'] > 0) {
@@ -2,6 +2,9 @@

// For IE to support headers if chat is installed on different domain
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
header('Cache-Control: nocache, no-store, max-age=0, must-revalidate');
header('Pragma: no-cache');
header('Expires: Sun, 02 Jan 1990 00:00:00 GMT');

$tpl = erLhcoreClassTemplate::getInstance( 'lhchat/chat.tpl.php');

0 comments on commit 954337c

Please sign in to comment.