Singleton in Session variable?
View Single Post
10-07-2009, 02:05 PM
Join Date: Mar 2009
I wouldn't recommend storing the singleton itself within the global session space as this will eventually lead to excessive server loading with all of the singleton data ....
The easier thing to do here is store only the configuration you are using for the Singleton and then recreate it on the next page load
If this is impossible as you are storing to much information in your singleton, then you need to rethink your code structure as it is flawed because you are relying heavily on data that may not be 100% accurate
Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
View Public Profile
Send a private message to ioan1k
Visit ioan1k's homepage!
Find More Posts by ioan1k