Decided to fix issue #2 using session IDs. Beginnimg to implement the solution but giving up for now because of tiredness.