summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/httplib.lua5
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