fix persistent sessions

This commit is contained in:
Martijn Voncken 2008-09-26 17:43:25 +00:00
parent a038ca8df8
commit eea926fadf

View File

@ -92,7 +92,7 @@ class json_rpc:
web.header("Content-Type", "application/x-json")
ck = cookies()
id = 0
if not(ck.has_key("session_id") and ck["session_id"] in utils.SESSIONS):
if not(ck.has_key("session_id") and ck["session_id"] in utils.config.get("sessions")):
return json_error("not authenticated", id)
try: