How to check session variable from window form applications

I have a web application running in a browser. With a Windows application running at the same time, can I check if any particular session variable exists or not? Basically, I want to check the session variables of a web application in a Windows application. Is it possible?

+4
source share
2 answers

Perhaps, but this is a big deal, and I hope that you have every reason for this (I could not come up with).

In any case, since the state provider does not have the default status "get status for all users", you must implement it yourself. What you are probably using right now as a session state provider is System.Web.SessionState.InProcSessionStateStore, which comes from SessionStateStoreProviderBase; what you need to do is implement your own session state store provider, which will also be inferred from SessionStateStoreProviderBase.

Link: http://msdn.microsoft.com/en-us/library/ms178589 (v = vs .100) .aspx

" " webservice, Windows. , - , .

+3

, . , , - , . . , .

0

Source: https://habr.com/ru/post/1537690/


All Articles