Move war file name parsing to a reusable function
Update expire_sessions code to work with new keys