Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

State management in C++ Web services

Here is how to maintain state in managed C++ Web services.

Here is how to maintain state in managed C++ Web services.
Declare a Web method as follows:
[System::Web::Services::WebMethod (EnableSession = true)]
bool SomeFunctionToSetValue(String *someString);
To set the state in an implementation of the above function, use:
get_Session()->set_Item("SomeTag",someString);
Then, to retrieve the value in some other function, use:
String *str = get_Session()->get_Item("SomeTag");

Dig Deeper on Topics Archive

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close