25
26
27
28
29
30
31
|
response.cookies["nb_cookie"]["path"] = "/"
print "cookie =", newsblur.cookies
redirect(URL("index"))
except Exception as ex:
login_form.insert(-1, ex.message)
return dict(login_form=login_form)
|
>
>
>
>
>
>
>
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
response.cookies["nb_cookie"]["path"] = "/"
print "cookie =", newsblur.cookies
redirect(URL("index"))
except Exception as ex:
login_form.insert(-1, ex.message)
return dict(login_form=login_form)
def logout():
response.cookies["nb_cookie"] = ""
response.cookies["nb_cookie"]["expires"] = -10
response.cookies["nb_cookie"]["path"] = "/"
redirect(URL("index"))
|