Skip to content

Creating custom Web Session, based on weblit and Luvit.

Notifications You must be signed in to change notification settings

EngrShahria/WebSessionLua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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!

About

Creating custom Web Session, based on weblit and Luvit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages