Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 678 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 678 Bytes

WebSessionLua

Creating custom Web Session, based on weblit and Luvit.

If you are not familar with Luvit Objects, please check Objects

local WebObject = require("WebSession")
--[[
Make a cookie, name it ID or anything ( I am using name ID )
and use that ID for TempVariable
]]
Local TempVariable[req.cookies.ID] = WebObject:new(req, res, {name = name, hash = "MD5", lenth = 5}) -- options: Name = username, hash = Hash method, Lenth for string

#Methods :destroy() to destroy the whole session :isAuth(req) to check the auth permissions :getID() to get the session ID

#I will keep update the module soon!