Cyberactiva - webmaster tutorials, programming and videogames tricks

webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu webmaster menu
  

Accessing Session state in Web Service from Background thread

Accessing Session state in Web Service from Background thread
I know that with Web Services, you should be doing everything in a stateless
environment. However, I have three methods out of over 100 that need state.
I have the client cookie container, WebMethod with Session enabled = true,
the works. However, my issue is I am running logic on a background thread in
a managed thread pool and I cannot access the session. I cannot pass all the
data into the thread either. Is there a way to access
HttpContext.Current.Session from a background thread? Everytime I check the
HttpContext.Current, it is equal to null. Any help is appreciated.
Register for freeMembers Area
Web MarketingLast Web Marketing
Web MarketingLast Programming Tips
Web MarketingLast News


Web Marketing Links and links exchange .