#NEWLINE# def get_expiration_time( self , app , session ) : #NEWLINE# #INDENT# if session . permanent : #NEWLINE# #INDENT# return app . permanent_session_lifetime #NEWLINE# #UNINDENT# if ( 'SESSION_TTL' in app . config ) : #NEWLINE# #INDENT# return datetime . timedelta ( ** app . config [ 'SESSION_TTL' ] ) #NEWLINE# #UNINDENT# return datetime . timedelta ( days = 1 )