def superuser_handler(sender, settings, **kwargs):
    """
    An session expiration handler which allows super-users an unlimited number
    of sessions.

    """
    if sender.is_superuser:
        settings['max_users'] = 0
