SessionVar = {}; SessionVar.Stored = {}; function SessionVar.Get(Variable) assert(type(Variable) == "string", "Variable is not type string."); return SessionVar.Stored[Variable] or nil; end function SessionVar.Set(Variable, Data) assert(type(Variable) == "string", "Variable is not type string."); SessionVar.Stored[Variable] = Data; end function SessionVar.Remove(Variable) assert(type(Variable) == "string", "Variable is not type string."); SessionVar.Stored[Variable] = nil; end function SessionVar.Expand(Variable) local Raw = Variable; assert(type(Variable) == "string", "Variable is not type string."); for K, V in pairs(SessionVar.Stored) do Variable = String.Replace(Variable, tostring(K), tostring(V), false); end if (Variable == Raw) then return; end return Variable; end function SessionVar.GetAll() return SessionVar.Stored; end