Use session[s].opened consistently when checking for in-use sessions (rather than...