I am working on a c# project where I have developed a web service. It connects to a card reader device. When connection is established it creates a session id. When one session id is created I am supposed to kind of lock the device and stop making any more sessions until the current session is released.
When I create a session with the device I am storing the session id in a private variable. I made my program to check for this variable before creating next session. But when I make next call to the web service to create another session it doesn't contain the variable value and creates another session for me.
I am confused as what to do. Is there any way to save the data which can be used to cross check in next calls to the web service? Cookies or registry updates? any solution please..