Last post Sep 02, 2011 01:50 PM by princeG
Sep 02, 2011 11:41 AM|Michael Brooks|LINK
I have a web service with several methods. I start it in debug mode. My Application_Start runs OK. My breakpoint in Session_Start does not get hit, even once the browser is open and displaying the available methods.
When I run one of the methods that examines the SessionID, it fails because there is no Session object. In order to persist the Session object and thus have a consistent SessionID throughout my session, I store data in the Session object within Session_Start.
But since Session_Start does not appear to get called, that approach doesn't (yet) help.
Can anyone explain what is going on please? I have a lot of code that depends upon me having a SessionID.
Sep 02, 2011 01:50 PM|princeG|LINK
Web service doesn't maintain session. so you need to use session than
you need to use: [WebMethod (EnableSession = true)]