HighTechTalks DotNet Forums  

sessionID and authentication in WS

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


Discuss sessionID and authentication in WS in the ASP.net Web Services forum.



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

Default sessionID and authentication in WS - 03-08-2007 , 10:47 AM






All of the examples of web services in the books I have are using anonymous
access and don't utilize sessions. Is there any material anywhere that
shows how to authenticate and uses sessions in Web Services?

Also, why two webServices forums?
Thanks,
T



Reply With Quote
  #2  
Old   
Laurent Bugnion [MVP]
 
Posts: n/a

Default Re: sessionID and authentication in WS - 03-08-2007 , 05:55 PM






Hi,

Tina wrote:
Quote:
All of the examples of web services in the books I have are using anonymous
access and don't utilize sessions. Is there any material anywhere that
shows how to authenticate and uses sessions in Web Services?
Authentication and Session management in Web services is very much
similar in Web Applications.

The main difference is that in web services, to use the Session object,
you need to declare it in the web method attribute:

[WebMethod( EnableSession=True )]

Once this is done, you can store objects in the Session and retrieve
them in the next roundtrip.

Authentication can also be done similarly, for example using
DigestAuthentication. The request sent by the web browser is similar to
a "normal" HTTP request sent to load or refresh a web page for example.

Quote:
Also, why two webServices forums?
No idea ;-)

Quote:
Thanks,
T
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch


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.