aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Session/Internal.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-25 10:23:06 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-04-25 10:36:24 +0200
commit0d53e86421faef0300d509b385934754b4dab88c (patch)
treef5319c156015c720115941cc4b3e79d3cfa7b9f7 /lib/private/Session/Internal.php
parent74de72e75e68cb3aaffa2ab90fbd685e755b4262 (diff)
downloadnextcloud-server-0d53e86421faef0300d509b385934754b4dab88c.tar.gz
nextcloud-server-0d53e86421faef0300d509b385934754b4dab88c.zip
add ISession::getId() wrapper for session_id
Diffstat (limited to 'lib/private/Session/Internal.php')
-rw-r--r--lib/private/Session/Internal.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php
index 09175bf1f2f..4fadb1ac801 100644
--- a/lib/private/Session/Internal.php
+++ b/lib/private/Session/Internal.php
@@ -112,6 +112,16 @@ class Internal extends Session {
}
/**
+ * Wrapper around session_id
+ *
+ * @return string
+ * @since 9.1.0
+ */
+ public function getId() {
+ return @session_id();
+ }
+
+ /**
* @throws \Exception
*/
public function reopen() {