So, An object that uses the singleton pattern can only have one instance. How does this work on websites?
Questions:
- Is the singleton object unique to each client/visitor of the website? i.e. Do singleton objects get one instance PER client?
- Objects in web applications only last for a few seconds, so if two clients simotaneously access a website both clients would be trying to create a singleton object. Does this mean one would have an exception thrown that visitors will see? I tried googling, but couldn't find a direct answer. I'm just looking for a little clarification.