def application(environ, start_response): import Cookie cookie = Cookie.SimpleCookie() cookie.load(environ['HTTP_COOKIE']) access_token = cookie['access_token'].valueWrite a cookie to HTTP header:
def application(environ, start_response): import Cookie cookie = Cookie.SimpleCookie() cookie['access_token'] = '1xRD3WXsdfsw23rjfsj9L' access_token = cookie['access_token'].value start_response('200 OK', ('Set-Cookie',cookie["access_token"].OutputString())])
Sorry but I couldn't get the blog, can you tell us what is this blog all about? Looking forward to hear from you, thanks
ReplyDeleteThanks for taking the time to write this, back in 2011. I used it today in a project.
ReplyDelete