G
Guest
Hi,
I want to keep a list of my visitors in an ArrayList which I place in the
application object like this:
Application("Visitors") = new ArrayList(); // The list of visitors
Then, each visitors update their own information in that list for every page
they visit.
Also, I add and remove visitors from the list as they come and go.
Can this cause concurrency situation and corrupt data? Do I need to lock the
Application("Visitors") each time I access it to add or to remove? Wouldn't
that be too much in term of performance? what is the best way to do this?
Thanks for any tips!
Stephane
I want to keep a list of my visitors in an ArrayList which I place in the
application object like this:
Application("Visitors") = new ArrayList(); // The list of visitors
Then, each visitors update their own information in that list for every page
they visit.
Also, I add and remove visitors from the list as they come and go.
Can this cause concurrency situation and corrupt data? Do I need to lock the
Application("Visitors") each time I access it to add or to remove? Wouldn't
that be too much in term of performance? what is the best way to do this?
Thanks for any tips!
Stephane