Urgent!! regarding Session management in WEbservice

S

sunnyz

hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
G

Guest

hi. interesting question. i believe when you try to access a web service, in
your client code you would start by creating the proxy class and call the
service. if there are return parameters such as data set or any value, you go
ahead and process the return value. after you are done, you tend to destroy
the instance of the proxy class thereby closing the connection to the service
itself. in view of this, i dont think a session object is a good approach to
hold something specific to your user...
 
G

Guest

In this case I suggest you use .net remoting... as a rule of thumb.. if you
need state, use remoting, else use webservices
kind regards
Henrik
 
A

Angelos Karantzalis

[WebMethod(EnableSession=true)] .. that will give you Session support for
the web service method call.



Angel

O:]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top