How to keep session alive between two calls to a web service in a c# application?

后端 未结 3 811
青春惊慌失措
青春惊慌失措 2020-12-19 15:06

This is quite straight forward.
I\'m calling a web-service (.asmx, with session enabled) from a c# application.

I want each call to be with the same session ke

3条回答
  •  旧巷少年郎
    2020-12-19 15:19

    From first call, look after ASP.NET_SessionId value in response, this is session Id by default.

    Then add it to next call (see below):

    http://support.microsoft.com/?kbid=899918

提交回复
热议问题