Hi,
Need some help with sessioning-problem within web-Service: I created a web-Service (VB.NET - asmx.project, published via IIS) and also a web-client (also VB.NET - asp-project, service-reference added to Project). Web-Client requests web-service successfully as well in debug-mode as in runtime-mode. Current task is to enable some sort of session-pooling, i.e web-Service needs to know unique session-id of each session requesting it (Cookie-Usage enabled in IIS).
Funny effect here is: Whenever web-Service is running in Debug-mode everything works fine: Either browser-based requests and also asp-client requests transmit their unique session-Id. Problem starts when requesting web-Service in runtime mode, i.e. as IIS-web-Service: Each request creates a new session-Id. In global.asax web-service references httpContext-Object in order to initialize it (hint from net-research), but this didn't solve the problem.
As I'm not very familiar which all the web-Technology, some advice would be helpful
What I have tried:
- Added reference in Global.asax to initialize HttpContext-object
- In IIS (Internet Information Service) set some session-settings:
In-process, use Cookies