File session_lua.luadoc
Functions
| session.load_lock (key) | return the string associated with key. |
| session.remove (key) | removes saved info for key. |
| session.save (key, data, overwrite) | stores the couple key,data in a permanent data structure. |
| session.unlock (key) | removes lock for key. |
Functions
- session.load_lock (key)
-
return the string associated with key. can be loaded with a loadstring(), remeber that returns "\a" if the requested session is locked
Parameters
- key:
- session.remove (key)
-
removes saved info for key.
Parameters
- key:
- session.save (key, data, overwrite)
-
stores the couple key,data in a permanent data structure. Permanent means not deleted after the end of the current session.
Parameters
- key:
- data:
- overwrite: number one of session.OVERWRITE and session.FAILIFPRESENT
- session.unlock (key)
-
removes lock for key.
Parameters
- key: