session and singleton pattern

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
i've creted a singleton class that retrieves texts from a db table. It
does so taking a language specific tag from a session variable. What
will happen if somebody else chooses another language. Will the
singleton be session dependent? And so: if somebody else chooses
another langiage will my choice be overruled?

Re: session and singleton pattern


Quoted text here. Click to load it



You have your session variable and your singleton object, another one
has his variable and his singleton. They won't interfere.


Site Timeline