Session garbage collection more flexible