Xander
Xander

Reputation: 9171

Silverlight and Session

I have a silverlight web application that maybe open for days. It uses a legacy web service that uses session...

How can I keep the session of the web service alive as long as the Silverlight appication is alive....

Good times

Upvotes: 0

Views: 211

Answers (1)

Oliver Weichhold
Oliver Weichhold

Reputation: 10296

If you are in control of both the Silverlight Client and the Webservice, you could add a Keep-Alive Method to the Service and periodically call it via Timer from the Silverlight Client. It's definitely not pretty though. In my opinion it would be better to find a way to work out a solution that does not require to maintain session state (or state in general) within the service.

Upvotes: 2

Related Questions