I have a web application with a login system which uses a wcf service. The user type his username/password to login, then we create a unique token for the user and then the token is saved in the browser cookies to keep the user online. Everytime the user send a request, his token is sent along with the request. We keep all the tokens in a basic List
in the service memory. Now, I'm asking myself if it is the best way to do this. Will iis recycle my app memory? I have read this question about keeping a list in a wcf service and it looks like I should avoid using a list in memory. What is the best alternative to this?
Thanks