#NEWLINE# def save_cookie( self , response , key = 'session' , expires = None , session_expires = None , max_age = None , path = '/' , domain = None , secure = None , httponly = False , force = False ) : #NEWLINE# #INDENT# 'Saves the SecureCookie in a cookie on response object.  All\n        parameters that are not described here are forwarded directly\n        to :meth:`~BaseResponse.set_cookie`.\n\n        :param response: a response object that has a\n                         :meth:`~BaseResponse.set_cookie` method.\n        :param key: the name of the cookie.\n        :param session_expires: the expiration date of the secure cookie\n                                stored information.  If this is not provided\n                                the cookie `expires` date is used instead.\n        ' #NEWLINE# if ( force or self . should_save ) : #NEWLINE# #INDENT# data = self . serialize ( ( session_expires or session_expires ) ) #NEWLINE# response . set_cookie ( key , data , expires = expires , max_age = max_age , path = path , domain = domain , secure = secure , httponly = httponly )