From 30f696282ffd3d4896d9d14dcf4e914938e9a09c Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 24 Jul 2008 09:57:18 +0000 Subject: Bug fixes... --- lib/httplib.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3