467,117 Members | 1,012 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,117 developers. It's quick & easy.

Urgent!! regarding Session management in WEbservice

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
*-----------------------*
Jul 21 '05 #1
  • viewed: 1212
Share:
3 Replies
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...

"sunnyz" wrote:
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
*-----------------------*

Jul 21 '05 #2
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

"Allan" wrote:
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...

"sunnyz" wrote:
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
*-----------------------*

Jul 21 '05 #3
[WebMethod(EnableSession=true)] .. that will give you Session support for
the web service method call.

Angel

O:]
"sunnyz" <su****@lycos-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
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
*-----------------------*

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Jeff | last post: by
5 posts views Thread by Abhilash.k.m | last post: by
1 post views Thread by trialproduct2004@yahoo.com | last post: by
1 post views Thread by ReinaldoCL | last post: by
2 posts views Thread by ad | last post: by
2 posts views Thread by satisharas@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.