#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# self . cookies [ key ] = value #NEWLINE# if key . persist : #NEWLINE# #INDENT# self . cookies [ key ] [ 'max-age' ] = SESSION_TTL #NEWLINE# #UNINDENT# self . set_cookie ( key )