aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-20 10:00:14 +0000
committerMario <mario@mariovavti.com>2024-07-20 10:00:14 +0000
commitc71eb401c04c5ae2e5388f988825b072f3c113df (patch)
treea2830e990b59d976e8aa602ee6e0b56490dc8b50
parent5a1079750e5b9fcfe9e86198a4bea119d1cbfc70 (diff)
downloadvolse-hubzilla-c71eb401c04c5ae2e5388f988825b072f3c113df.tar.gz
volse-hubzilla-c71eb401c04c5ae2e5388f988825b072f3c113df.tar.bz2
volse-hubzilla-c71eb401c04c5ae2e5388f988825b072f3c113df.zip
Revert "sse: reset session after connection aborted"
This reverts commit 3d03c24f060994c98011a5d87b1f498325a605fe
-rw-r--r--Zotlabs/Module/Sse.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/Zotlabs/Module/Sse.php b/Zotlabs/Module/Sse.php
index daf344f2d..a5b5c7e35 100644
--- a/Zotlabs/Module/Sse.php
+++ b/Zotlabs/Module/Sse.php
@@ -41,6 +41,8 @@ class Sse extends Controller {
}
}
+
+
if (self::$uid) {
self::$vnotify = get_pconfig(self::$uid, 'system', 'vnotify');
}
@@ -136,17 +138,8 @@ class Sse extends Controller {
}
if (connection_status() != CONNECTION_NORMAL || connection_aborted()) {
-
- // IMPORTANT: in case the channel was changed we need to reset the
- // session here to it's current stored state.
- // Otherwise the uid might switch back to the previous value
- // in the background.
-
- session_reset();
-
XConfig::Set(self::$ob_hash, 'sse', 'timestamp', NULL_DATE);
XConfig::Set(self::$ob_hash, 'sse', 'notifications', []);
-
$_SESSION['sysmsg'] = [];
$_SESSION['sysmsg_info'] = [];