Only copy session if a database login has been performed