Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello,
I have WebService client (predetermined) and I have to write WebService server. Client send few request to my server and I have to store all data. Clients has own session ID which send me in every request. Is there any solution in c# that I determine, based on request sessionID, to get/create current session?

UPDATE:
Maybe I don't have knowledge to know what I want:( Client can authenticating and ask some question to server, but I don't know if he logout. Example: Person A login to application in hostA and authenticate to my server, ask some question and logout in application (but server doesn't know about this). Person B login to hostA and start asking questing (only ID in request changes). Ok, I can check if requestID have change and if so a can clean session and ask for authenticate..... but.....
If I have right session is simple, thread-safe dictionary which expired when exceeds the specified time-out value and is create in background (by cookie etc.) and I wonder if is something like this with method Session.Start(string RequestID) which get or create new session (if session RequestId doesn't exist).
Sorry for my english.
Posted
Updated 29-Jun-14 21:56pm
v3
Comments
Jafarinejadvazifehkhorani 27-Jun-14 11:59am    
it doesn't make sense for me unless you explain it more.you can send consecutive requests and recognize them on the server by authenticating the sender.
ZurdoDev 27-Jun-14 21:49pm    
I don't follow your question either.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900