internet application programming simplecookie([input]defines cookie object in which cookie values are stored as simple strings cookie instancecprovides the following methodsc output([attrs [,header [,sep]]]generates string suitable for use in setting cookie values in http headers attrs is an optional list of the optional attributes to include ("expires""path""domain"and so onby defaultall cookie attributes are included header is the http header to use ('set-cookie:by defaultsep is the character used to join the headers together and is newline by default js_output([attrs]generates string containing javascript code that will set the cookie if executed on browser supporting javascript attrs is an optional list of the attributes to include load(rawdataloads the cookie with data found in rawdata if rawdata is stringit' assumed to be in the same format as the http_cookie environment variable in cgi program if rawdata is dictionaryeach key-value pair is interpreted by setting [key]=value internallythe key/value pairs used to store cookie value are instances of morsel class an instancemof morsel behaves like dictionary and allows the optional "expires""path""comment""domain""max-age""secure""version"and "httponlykeys to be set in additionthe morsel has the following methods and attributesm value string containing the raw value of the cookie coded_value string containing the encoded value of the cookie that would be sent to or received from the browser key the cookie name set(key,value,coded_valuesets the values of keym valueand coded_value shown previously isreservedkey(ktests whether is reserved keywordsuch as "expires""path""domain"and so on output([attrs [,header]]produces the http header string for this morsel attrs is an optional list of the additional attributes to include ("expires""path"and so onheader is the header string to use ('set-cookie:by defaultm js_output([attrs]outputs javascript code that sets the cookie when executed lib fl ff