Documentation for Module: cookie.py ||  Module Index

General: !Overview Cookie Handling
author: Tim Johnson tim@akwebsoft.com

Context Index
cookie Functions: ==>
OVERVIEW get getvals load_session set
expire getlog get_session_name save_session  

Context: cookie

Overview Of: cookieTopContext IndexNext Function
    General: intialize as object = cookie.cookie(<**keywords>)
    Note: **kw is generally not used. Use get(name) and set
Function: obj.expireTopContext IndexPrevious FunctionNext Function
    syntax: cky.expire(<cookie_name>)
    description: Expire a cookie by setting an expiration date in the past.
Function: obj.getTopContext IndexPrevious FunctionNext Function
    syntax: cky.get(<name>) Retrieve and parse cookie by name. If found, return Dict
Function: obj.getlogTopContext IndexPrevious FunctionNext Function
    syntax: cky.getlog(<name>)
    from: cooky name return email and password - in that order.
Function: obj.getvalsTopContext IndexPrevious FunctionNext Function
    syntax: cky.getvals(<name>,<*keys>) return values for keys.
Function: obj.get_session_nameTopContext IndexPrevious FunctionNext Function
    syntax: cky.get_session_name(<name>) Get session name for cookie
Function: obj.load_sessionTopContext IndexPrevious FunctionNext Function
    syntax: cky.load_session(<name>) Load session info from pickle file.
Function: obj.save_sessionTopContext IndexPrevious FunctionNext Function
    syntax: cky.save_session(<name>,<D>) Save session info in pickle format.
Function: obj.setTopContext IndexPrevious Function
    syntax: cky.set(<name-string>,<attrsD>,<prefix=''>)
    Example: cky.set("mycookie",{'email':email,'password':password},'set by kbDispatcher.py')
    Result: Following format.'prefix(key1|val1)(key2|val2) .... (keyn|valn)'
    where one pair will have the following (self.session_token|randomstring)