Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservices and session state

Reply
Thread Tools

Webservices and session state

 
 
Hans
Guest
Posts: n/a
 
      02-27-2004
When I create a webservice i have settings for session state

How does session state apply to webservice

Is there a new session for every request or for every proxy
What happens when it time out

If I request my webservice from my ASP.NET web app. and my apps session state out lives the webservices session state

Thx in adv.
/Hans
 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      02-27-2004
By default web service calls are stateless. But there are "work-arounds".
For more info check this article for example:
http://tinyurl.com/6358
Using ASP.NET Session State in a Web Service
Introduction
One of the most common challenges that Web developers encounter is
maintaining state in the stateless world of HTTP. There have been a number
of clever means used to get around the stateless issue, from reposting
application data with each request, to using HTTP authentication to map
requests to specific users, to using HTTP cookies to preserve the state of a
series of requests. One particularly clever way of maintaining state that
hides all the challenging work below is to simply use the Microsoft® ASP.NET
System.Web.SessionState.HttpSessionState class. You can use the ASP.NET
HttpSessionState class from a Web method just as you can from ASPX pages,
but things work a little differently for Web methods.


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"Hans" <> wrote in message
news:F27F1606-0988-46E0-BA58-...
> When I create a webservice i have settings for session state.
>
> How does session state apply to webservice.
>
> Is there a new session for every request or for every proxy?
> What happens when it time out.
>
> If I request my webservice from my ASP.NET web app. and my apps session

state out lives the webservices session state?
>
> Thx in adv..
> /Hans



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between asp session state and asp.net session state. archana ASP .Net 0 03-13-2007 11:42 AM
ASP.NET 2.0 Session State and ASP.NET 1.1 Session State jnickfl1 ASP .Net 0 09-18-2006 03:23 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Unable to make the session state request to the session state server Not Liking Dot Net Today ASP .Net 0 04-21-2004 11:54 AM
unable to make the session state request to the session state server shamanthakamani ASP .Net 1 11-20-2003 04:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57