Skip to content

Commit 6730c45

Browse files
committed
Reset session helpers
1 parent c46af2c commit 6730c45

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

lhc_web/lib/core/lhabstract/lhabstract.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,11 @@ public static function getSession()
521521
return self::$persistentSession;
522522
}
523523

524+
public static function resetSession()
525+
{
526+
self::$persistentSession = null;
527+
}
528+
524529
private static $persistentSession;
525530
private static $instance = null;
526531
}

lhc_web/lib/core/lhchat/lhchat.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,11 @@ public static function getSession()
18071807
return self::$persistentSession;
18081808
}
18091809

1810+
public static function resetSession()
1811+
{
1812+
self::$persistentSession = null;
1813+
}
1814+
18101815
public static function formatDate($ts) {
18111816
if (date('Ymd') == date('Ymd',$ts)) {
18121817
return date(erLhcoreClassModule::$dateHourFormat,$ts);

lhc_web/lib/core/lhdepartament/lhdepartament.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,6 +1183,11 @@ public static function getSession()
11831183
return self::$persistentSession;
11841184
}
11851185

1186+
public static function resetSession()
1187+
{
1188+
self::$persistentSession = null;
1189+
}
1190+
11861191
private static $persistentSession;
11871192

11881193
}

lhc_web/lib/core/lhgenericbot/lhgenericbot.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public static function getSession()
1414
return self::$persistentSession;
1515
}
1616

17+
public static function resetSession()
18+
{
19+
self::$persistentSession = null;
20+
}
21+
1722
public static function validateBot(& $bot, $additionalParams = array()) {
1823

1924
$definition = array(

0 commit comments

Comments
 (0)