summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-23 14:14:15 +0200
committerGitHub <noreply@github.com>2022-08-23 14:14:15 +0200
commit1a2c008011a185fdccfefa37c1b56a5010a07320 (patch)
tree302cf02bf58d1bb4f94b38cc3855e438688b319c /lib/public
parent232866d42ed25150358c17a0dda1a4ac0c058961 (diff)
parent1b43fbe06c7fa7eb16abe5509ecc952ddaf7c5be (diff)
downloadnextcloud-server-1a2c008011a185fdccfefa37c1b56a5010a07320.tar.gz
nextcloud-server-1a2c008011a185fdccfefa37c1b56a5010a07320.zip
Merge pull request #32162 from nextcloud/enh/session-reopen
Avoid locking the php session
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/ISession.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/ISession.php b/lib/public/ISession.php
index 2709e09d4ca..12cd716ec3f 100644
--- a/lib/public/ISession.php
+++ b/lib/public/ISession.php
@@ -84,6 +84,14 @@ interface ISession {
public function clear();
/**
+ * Reopen a session for writing again
+ *
+ * @return bool true if the session was actually reopened, otherwise false
+ * @since 25.0.0
+ */
+ public function reopen(): bool;
+
+ /**
* Close the session and release the lock
* @since 7.0.0
*/