@staticmethod
def __session_id_cookie_settings(secret=False):
    """ Defines some settings to be used with the session id cookie. """
    cookie_settings = {}
    cookie_settings.setdefault('expires', None)
    cookie_settings.setdefault('expires_days', None)
    if secret:
        cookie_settings['expires_days'] = 30
    return cookie_settings
