Session identifiers are guaranteed to be unique in the space of the identifiers currently in use. In principle, all current sessions have a unique identifier.
This means that you cannot rely on a session identifier for multiple sessions (it seems obvious when you say so). I suggest doing something like hashing the current time, and using this file has a unique file identifier.
Aatch source share