#NEWLINE# def _set_cookie( self , key , value = '' , max_age = None , expires = None , path = '/' , domain = None , secure = False ) : #NEWLINE# #INDENT# self . _resp_cookies [ key ] = value #NEWLINE# self . COOKIES [ key ] = value #NEWLINE# if ( max_age is not None ) : #NEWLINE# #INDENT# self . _resp_cookies [ key ] [ 'max-age' ] = max_age #NEWLINE# #UNINDENT# if ( expires is not None ) : #NEWLINE# #INDENT# self . _resp_cookies [ key ] [ 'expires' ] = expires #NEWLINE# #UNINDENT# if ( path is not None ) : #NEWLINE# #INDENT# self . _resp_cookies [ key ] [ 'path' ] = path #NEWLINE# #UNINDENT# if ( domain is not None ) : #NEWLINE# #INDENT# self . _resp_cookies [ key ] [ 'domain' ] = domain #NEWLINE# #UNINDENT# if secure : #NEWLINE# #INDENT# self . _resp_cookies [ key ] [ 'secure' ] = True