setcookie
web.setcookie(name, value, expires, domain, secure)
secure: 這 cookie 必須要 https 下傳輸
expires=-1 會令 cookie 即刻 expire, Default: session
domain: Default "/"
secure: Default: False
i.e.
web.setcookie("ssid", ssid, 604800)
Retrieving Cookies
<1>
# return None if cookie is not found
web.cookies().get(cookieName)
<2>
# avoids exception by setting default value
# foo = web.cookies(cookieName=defaultValue)
foo = web.cookies() foo.cookieName