HighTechTalks DotNet Forums  

sharing session between application and web service

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss sharing session between application and web service in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Victor Reboucas
 
Posts: n/a

Default sharing session between application and web service - 06-17-2007 , 03:15 PM






Hi, I'm developing an asp.net 2.0 application and I'm trying to use a
session value set in a web form inside a web service call.


I mean I have a web form with a list of orders for a given customer

when the page loads I set session("customer") =
request.querystring("customer")

every minute I have to refresh the current results on the page and I'm
trying to do that using an existing web service (that's hosted inside the
same application) and for the customer code I use
httpcontext.current.session("customer")


I just cannot get that session value....

Is there something I'm missing here?

Is that impossible to do?


thanks for any clue,
regards,
Victor



Reply With Quote
  #2  
Old   
Victor Reboucas
 
Posts: n/a

Default Re: sharing session between application and web service - 06-17-2007 , 10:01 PM






I found that...

is just a matter of an attribute:

<WebMethod(EnableSession:=True)>



regards.



"Victor Reboucas" <vcreb (AT) hotmail (DOT) com> wrote

Quote:
Hi, I'm developing an asp.net 2.0 application and I'm trying to use a
session value set in a web form inside a web service call.


I mean I have a web form with a list of orders for a given customer

when the page loads I set session("customer") =
request.querystring("customer")

every minute I have to refresh the current results on the page and I'm
trying to do that using an existing web service (that's hosted inside the
same application) and for the customer code I use
httpcontext.current.session("customer")


I just cannot get that session value....

Is there something I'm missing here?

Is that impossible to do?


thanks for any clue,
regards,
Victor




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.