Changeset

6937:f5d2e58fbefa

util.session: What is a session?
author Kim Alvefur <zash@zash.se>
date Tue, 24 Nov 2015 19:00:43 +0100
parents 6933:d636815d81c3
children 6938:9df70e9e006b
files util/session.lua
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/session.lua	Tue Nov 24 19:00:43 2015 +0100
@@ -0,0 +1,11 @@
+
+local function new_session(typ)
+	local session = {
+		type = typ .. "_unauthed";
+	};
+	return session;
+end
+
+return {
+	new = new_session;
+}