Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a3d2a1c57e
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (12 sloc) 0.509 kb
layout title
default
web.setcookies()

web.setcookies()

Allows you to set a cookie. Useful for carrying around non-private data

accepts the following arguments: name, value, expiration time, domain

in the following example you can see that the name of the cookie is 'hc', the value is '1', the expiry is in seconds, so 3600 seconds == 1 hour, then domain is 'huntercross.com'

example

    web.setcookie('hc', '1', 3600, 'huntercross.com')

    print web.cookies()
Jump to Line
Something went wrong with that request. Please try again.