Random generation of Session IDs

Change sessionID to String. That affected many files.