diff options
author | pixel <pixel> | 2008-07-24 09:57:18 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-07-24 09:57:18 +0000 |
commit | 30f696282ffd3d4896d9d14dcf4e914938e9a09c (patch) | |
tree | 26d53cee7e5b66facf8d12b593d83afa729255ab | |
parent | e16206217389ef842e6900f6bd8b5a761b3ff0c8 (diff) |
Bug fixes...
-rw-r--r-- | lib/httplib.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/httplib.lua b/lib/httplib.lua index 0fd7003..3cd4abf 100644 --- a/lib/httplib.lua +++ b/lib/httplib.lua @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: httplib.lua,v 1.1 2008-07-23 16:08:10 pixel Exp $ */ +/* $Id: httplib.lua,v 1.2 2008-07-24 09:57:18 pixel Exp $ */ ]]-- @@ -35,6 +35,7 @@ local function generate_new_session() data = {}, access = time() } + return ticket end local function clean_sessions() @@ -70,7 +71,7 @@ function get_session(req, res) sid = cookies.sid end - if not sid and not sessions[sid] then + if not sid or not sessions[sid] then sid = generate_new_session() end |