aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-11-24 19:00:43 +0100
committerKim Alvefur <zash@zash.se>2015-11-24 19:00:43 +0100
commitcf7c286cfbc879121126248d21bef70dfec2e5bc (patch)
treeadfa271def63e3c585942475f11acec2f6453b18
parent89bc6c6ad740c0c309fd9679eca8c4c8006177d8 (diff)
downloadprosody-cf7c286cfbc879121126248d21bef70dfec2e5bc.tar.gz
prosody-cf7c286cfbc879121126248d21bef70dfec2e5bc.zip
util.session: What is a session?
-rw-r--r--util/session.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/util/session.lua b/util/session.lua
new file mode 100644
index 00000000..735b6165
--- /dev/null
+++ b/util/session.lua
@@ -0,0 +1,11 @@
+
+local function new_session(typ)
+ local session = {
+ type = typ .. "_unauthed";
+ };
+ return session;
+end
+
+return {
+ new = new_session;
+}