5 from http import cookies
7 def schreibe_log(eintrag):
8 syslog.openlog("eh_util")
11 def write_http_data(key, value):
12 cookie = cookies.SimpleCookie()
14 cookie[key]["path"] = "/eh_util"
17 def lese_http_data(key):
19 cookie_string = os.environ.get("HTTP_COOKIE")
20 cookie = cookies.SimpleCookie(cookie_string)
22 return cookie[key].value
24 #return cookie[key] or None