#NEWLINE# def save( self ) : #NEWLINE# #INDENT# if ( not self . secret_key ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if self . cleared : #NEWLINE# #INDENT# self . response . delete_cookie ( self . session_cookie_name , path = self . session_cookie_path , domain = self . get_cookie_domain ( ) ) #NEWLINE# #UNINDENT# if self . modified : #NEWLINE# #INDENT# s = self . get_serializer ( ) #NEWLINE# cookie_value = s . dumps ( dict ( self . data ) ) #NEWLINE# self . response . set_cookie ( self . session_cookie_name , cookie_value , max_age = self . max_age , path = self . session_cookie_path , domain = self . get_cookie_domain ( ) , secure = self . session_cookie_secure , httponly = self . session_cookie_httponly ) #NEWLINE# #UNINDENT# return None