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
commit7d3ecdd4ed165ec2fc86dbc5ffd0e4e2feba76f0 (patch)
treeadfa271def63e3c585942475f11acec2f6453b18
parent4151b38f1c70863760f0716324598a219659b6d9 (diff)
downloadprosody-7d3ecdd4ed165ec2fc86dbc5ffd0e4e2feba76f0.tar.gz
prosody-7d3ecdd4ed165ec2fc86dbc5ffd0e4e2feba76f0.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;
+}