Performing a task in the "middle" of a log-in and log-out process possible?