diff --git a/sessionmanagermdl/sessionmanager.go b/sessionmanagermdl/sessionmanager.go
index 2a642d3d0f4b771f6cc4a0ef39fb87a0d789b088..f023f97a69486f4c58c893e8d88803cbbb6889ab 100644
--- a/sessionmanagermdl/sessionmanager.go
+++ b/sessionmanagermdl/sessionmanager.go
@@ -111,6 +111,11 @@ func Retrieve(key string) (Entry, error) {
 	}
 }
 
+// RetrieveAll returns all entries present in memory. **Not for production use. May add performance costs**
+func RetrieveAll() map[string]interface{} {
+	return store.GetAll()
+}
+
 // RetrieveAndExtend returns the entry and extends the entry expiration by provided `SECONDS`, only if remaining time < extendBy.
 // If extendBy < 0, it is same as Retrieve function.
 func RetrieveAndExtend(key string, extendBy int64) (Entry, error) {