I realized that might be the case, which is why I stated that I could live without the ability to decode the number, as long as the resulting number is unique and 9 digits or less.
For example...
I dont want "IP1" and "Sessionid1" to ever produce a 9 digit number that can be produced by any other "IP" and "Sessionid" combination. The encoding is really the vital part.