Check for session extension on startup

See issue #4.