Hi!
I've got a WebService that stores names of logged users. It is a simple C# List<string> that is private and static and I add some strings to it and read values, using WebService's functions in my WindowsForms client application.
And my first question is - is it save to keep data in variable? And where that data are stored? Cache, session? I made some tests and it occures to me that one day data where deleted from WebService's memory after several seconds (I tried cache to store data from List<string> but it also looses values after a very short time...) and another day they were alive for many minutes (at least 25 minutes!). Now I don't know who should I blame - my code or the server where is my WebService ;).
Sorry for my English...
I've got a WebService that stores names of logged users. It is a simple C# List<string> that is private and static and I add some strings to it and read values, using WebService's functions in my WindowsForms client application.
And my first question is - is it save to keep data in variable? And where that data are stored? Cache, session? I made some tests and it occures to me that one day data where deleted from WebService's memory after several seconds (I tried cache to store data from List<string> but it also looses values after a very short time...) and another day they were alive for many minutes (at least 25 minutes!). Now I don't know who should I blame - my code or the server where is my WebService ;).
Sorry for my English...
Comment