Change the Session ID from int to long, because int has become too small.
The main script.