473,326 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Web Service Session Behaviour

Hi

I've been experimenting with managing state using the Session object. I've
created a simple WS with a couple of methods, one which sets a string
value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting to
retrieve it using the same instance of the client proxy, the value is lost.

What am I missing?

TIA

Glenn
Jun 16 '07 #1
11 3590

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
Hi

I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting to
retrieve it using the same instance of the client proxy, the value is
lost.

What am I missing?
The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

I think if you need to keep a variable's state in this case you have the
following options:

You're going to need to read/write an xml serialized object file with the
variable in it to a common place so that the two applications can get or set
the variable.

Or you use a cookie between the two applications.

Or your other option might be that you use SQL Server or a State Server to
keep session state, between the two applications.

http://msdn2.microsoft.com/en-us/lib...lesession.aspx

Jun 16 '07 #2
Doh! Of course - the words "browser session" in the first sentence of the
docs should've given it away.

Thanks for the help

Glenn

"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...
>
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
>Hi

I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting
to retrieve it using the same instance of the client proxy, the value is
lost.

What am I missing?

The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

I think if you need to keep a variable's state in this case you have the
following options:

You're going to need to read/write an xml serialized object file with the
variable in it to a common place so that the two applications can get or
set the variable.

Or you use a cookie between the two applications.

Or your other option might be that you use SQL Server or a State Server to
keep session state, between the two applications.

http://msdn2.microsoft.com/en-us/lib...lesession.aspx

Jun 16 '07 #3
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...
>
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
>Hi

I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting
to retrieve it using the same instance of the client proxy, the value is
lost.

What am I missing?

The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx
This answer is almost right. ASP.NET session state (even for web services)
is kept in HTTP cookies. A web browser, naturally, knows how to store
cookies and send them back on demand. In order to successfully use a service
that maintains Session state, you need to do the same in your client
programs.

You do this simply by setting the CookieContainer property of your proxy
class instance:

using (MyService service = new MyService())
{
service.CookieContainer = new CookieContainer(); // Other overloads
exist
service.SetSessionValue("string");
string returnedValue = service.GetSessionValue();
if (returnedValue != "string")
{
throw new Exception("Uh-oh!");
}
}

Note that this technique can also be used to set other properties of your
interaction with the web service. See the documentation on the
HttpWebClientProtocol class, especially the Proxy, ClientCertificates,
Timeout, UseDefaultCredentials and Credentials properties.
--
John Saunders [MVP]
Jun 16 '07 #4

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...
>>
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
>>Hi

I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting
to retrieve it using the same instance of the client proxy, the value is
lost.

What am I missing?

The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

This answer is almost right. ASP.NET session state (even for web services)
is kept in HTTP cookies. A web browser, naturally, knows how to store
cookies and send them back on demand. In order to successfully use a
service that maintains Session state, you need to do the same in your
client programs.
Let's get this right now. An in-process setting for an ASP.NET solution
using Session State is being help in memory at the Web server, which is most
likely the case for the OP and his example. It's not being held in cookies.

Cookies can be used to hold state for a ASP.Net browser session, along with
View State, Hidden fields, Control State and Query Strings.

And in the case of the OP he got two choices that are viable, either use
cookies between the Web service and the Console applications or use XML
Serialized objects between the two applications.

Jun 16 '07 #5
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OI**************@TK2MSFTNGP05.phx.gbl...
>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl...
>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...
>>>
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
Hi

I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting
to retrieve it using the same instance of the client proxy, the value
is lost.

What am I missing?

The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

This answer is almost right. ASP.NET session state (even for web
services) is kept in HTTP cookies. A web browser, naturally, knows how to
store cookies and send them back on demand. In order to successfully use
a service that maintains Session state, you need to do the same in your
client programs.

Let's get this right now. An in-process setting for an ASP.NET solution
using Session State is being help in memory at the Web server, which is
most likely the case for the OP and his example. It's not being held in
cookies.
ASP.NET Session state uses a cookie to pass the session id to the client. It
expects to receive that cookie back on subsequent requests so that it
recognizes the request as being part of the same session.
Cookies can be used to hold state for a ASP.Net browser session,
No, cookies are not used to _hold_ session state. A single cookie is used to
hold a session id, which ASP.NET uses as the key to find the particular
Session dictionary it iwill make available to the web service.
--
John Saunders [MVP]
Jun 17 '07 #6

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:O%***************@TK2MSFTNGP06.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OI**************@TK2MSFTNGP05.phx.gbl...
>>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl...
>>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...

"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl...
Hi
>
I've been experimenting with managing state using the Session object.
I've created a simple WS with a couple of methods, one which sets a
string value, another that retrieves it.
>
Each method has the WebMethodAttribute.EnableSession set to true.
>
When I run the test page the session is maintained. However, using a
console application, in between setting the string value and
attempting to retrieve it using the same instance of the client proxy,
the value is lost.
>
What am I missing?

The fact that it only applies to an ASP.net web browser session I would
think, in your example.

http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

This answer is almost right. ASP.NET session state (even for web
services) is kept in HTTP cookies. A web browser, naturally, knows how
to store cookies and send them back on demand. In order to successfully
use a service that maintains Session state, you need to do the same in
your client programs.

Let's get this right now. An in-process setting for an ASP.NET solution
using Session State is being help in memory at the Web server, which is
most likely the case for the OP and his example. It's not being held in
cookies.

ASP.NET Session state uses a cookie to pass the session id to the client.
It expects to receive that cookie back on subsequent requests so that it
recognizes the request as being part of the same session.
Then what's a cookieless session in a ASP.NET browser solution about? You
don't need a cookie to hold a Session ID, which the Session ID is placed in
the URL.

I must be missing something here, and the MS Training book for exam 70-528
must be wrong, when the book talks about a cookieless browser session, using
ASP,NET.

Cookieless sessions are also being talked about in the link provided.

http://msdn2.microsoft.com/en-us/library/aa479314.aspx
>
No, cookies are not used to _hold_ session state. A single cookie is used
to hold a session id, which ASP.NET uses as the key to find the particular
Session dictionary it iwill make available to the web service.
No, I didn't say that a cookie holds Session State, but a cookie can hold
state for a browser session.

I must be missing something here, when once again, MS MCTS Training book
for exam 70-528 talks about ASP.NET State Management, an entire chapter
concerning this.

Now, you and I might be talking two differrnt things. I am addressing what's
happening in a ASP.NET browser session when you said *it's almost right*.

Jun 17 '07 #7
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:O%***************@TK2MSFTNGP06.phx.gbl...
>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OI**************@TK2MSFTNGP05.phx.gbl...
>>>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl...
>
"Glenn" <gl**********@yahoo.co.ukwrote in message
news:Oa**************@TK2MSFTNGP05.phx.gbl.. .
>Hi
>>
>I've been experimenting with managing state using the Session object.
>I've created a simple WS with a couple of methods, one which sets a
>string value, another that retrieves it.
>>
>Each method has the WebMethodAttribute.EnableSession set to true.
>>
>When I run the test page the session is maintained. However, using a
>console application, in between setting the string value and
>attempting to retrieve it using the same instance of the client
>proxy, the value is lost.
>>
>What am I missing?
>
The fact that it only applies to an ASP.net web browser session I
would think, in your example.
>
http://msdn2.microsoft.com/en-us/lib...sionstate.aspx

This answer is almost right. ASP.NET session state (even for web
services) is kept in HTTP cookies. A web browser, naturally, knows how
to store cookies and send them back on demand. In order to successfully
use a service that maintains Session state, you need to do the same in
your client programs.

Let's get this right now. An in-process setting for an ASP.NET solution
using Session State is being help in memory at the Web server, which is
most likely the case for the OP and his example. It's not being held in
cookies.

ASP.NET Session state uses a cookie to pass the session id to the client.
It expects to receive that cookie back on subsequent requests so that it
recognizes the request as being part of the same session.

Then what's a cookieless session in a ASP.NET browser solution about? You
don't need a cookie to hold a Session ID, which the Session ID is placed
in the URL.
I didn't say there was no such thing as a cookieless session. I said that
session state (by default) depends on a cookie.
I must be missing something here, and the MS Training book for exam 70-528
must be wrong, when the book talks about a cookieless browser session,
using ASP,NET.
Does the book say that all session state is cookieless?
Cookieless sessions are also being talked about in the link provided.

http://msdn2.microsoft.com/en-us/library/aa479314.aspx
>>
No, cookies are not used to _hold_ session state. A single cookie is used
to hold a session id, which ASP.NET uses as the key to find the
particular Session dictionary it iwill make available to the web service.

No, I didn't say that a cookie holds Session State, but a cookie can hold
state for a browser session.

I must be missing something here, when once again, MS MCTS Training book
for exam 70-528 talks about ASP.NET State Management, an entire chapter
concerning this.

Now, you and I might be talking two differrnt things. I am addressing
what's happening in a ASP.NET browser session when you said *it's almost
right*.
The OP was talking about web services.
--
John Saunders [MVP]
Jun 17 '07 #8

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:O%***************@TK2MSFTNGP06.phx.gbl...
>>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OI**************@TK2MSFTNGP05.phx.gbl...

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eq**************@TK2MSFTNGP05.phx.gbl.. .
>>
>"Glenn" <gl**********@yahoo.co.ukwrote in message
>news:Oa**************@TK2MSFTNGP05.phx.gbl. ..
>>Hi
>>>
>>I've been experimenting with managing state using the Session
>>object. I've created a simple WS with a couple of methods, one
>>which sets a string value, another that retrieves it.
>>>
>>Each method has the WebMethodAttribute.EnableSession set to true.
>>>
>>When I run the test page the session is maintained. However, using
>>a console application, in between setting the string value and
>>attempting to retrieve it using the same instance of the client
>>proxy, the value is lost.
>>>
>>What am I missing?
>>
>The fact that it only applies to an ASP.net web browser session I
>would think, in your example.
>>
>http://msdn2.microsoft.com/en-us/lib...sionstate.aspx
>
This answer is almost right. ASP.NET session state (even for web
services) is kept in HTTP cookies. A web browser, naturally, knows how
to store cookies and send them back on demand. In order to
successfully use a service that maintains Session state, you need to
do the same in your client programs.

Let's get this right now. An in-process setting for an ASP.NET solution
using Session State is being help in memory at the Web server, which is
most likely the case for the OP and his example. It's not being held in
cookies.

ASP.NET Session state uses a cookie to pass the session id to the
client. It expects to receive that cookie back on subsequent requests so
that it recognizes the request as being part of the same session.

Then what's a cookieless session in a ASP.NET browser solution about? You
don't need a cookie to hold a Session ID, which the Session ID is placed
in the URL.

I didn't say there was no such thing as a cookieless session. I said that
session state (by default) depends on a cookie.
I didn't say that you did say there was no such thing as a cookieless
session, but I did bring up that fact that there can be a cookieless
session, with Session ID state held without the use of a cookie.
>
>I must be missing something here, and the MS Training book for exam
70-528 must be wrong, when the book talks about a cookieless browser
session, using ASP,NET.

Does the book say that all session state is cookieless?
No, it didn't say that, but the fact remains, that there can be a cookieless
session, which I was told/shown that back in 2004 during .Net training 8
hours for 4 weeks by a .Net guru out of India the company flew in to do the
training, which I have had no need to create an ASP.NET solution that was
cookieless to this point.
>
>Cookieless sessions are also being talked about in the link provided.

http://msdn2.microsoft.com/en-us/library/aa479314.aspx
>>>
No, cookies are not used to _hold_ session state. A single cookie is
used to hold a session id, which ASP.NET uses as the key to find the
particular Session dictionary it iwill make available to the web
service.

No, I didn't say that a cookie holds Session State, but a cookie can hold
state for a browser session.

I must be missing something here, when once again, MS MCTS Training book
for exam 70-528 talks about ASP.NET State Management, an entire chapter
concerning this.

Now, you and I might be talking two differrnt things. I am addressing
what's happening in a ASP.NET browser session when you said *it's almost
right*.

The OP was talking about web services.
No, the OP started out with ASP.Net and why a Session variable was held in
state with the Web service as opposed to why it was not held in state when
using a Console application with the Web service, which you most elegantly
gave a solution. :)

Jun 17 '07 #9
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:ed**************@TK2MSFTNGP02.phx.gbl...
>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:OE**************@TK2MSFTNGP03.phx.gbl...
>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>>>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:O%***************@TK2MSFTNGP06.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OI**************@TK2MSFTNGP05.phx.gbl...
>
"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uC**************@TK2MSFTNGP05.phx.gbl.. .
>"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
>news:eq**************@TK2MSFTNGP05.phx.gbl. ..
>>>
>>"Glenn" <gl**********@yahoo.co.ukwrote in message
>>news:Oa**************@TK2MSFTNGP05.phx.gbl.. .
>>>Hi
>>>>
>>>I've been experimenting with managing state using the Session
>>>object. I've created a simple WS with a couple of methods, one
>>>which sets a string value, another that retrieves it.
>>>>
>>>Each method has the WebMethodAttribute.EnableSession set to true.
>>>>
>>>When I run the test page the session is maintained. However, using
>>>a console application, in between setting the string value and
>>>attempting to retrieve it using the same instance of the client
>>>proxy, the value is lost.
>>>>
>>>What am I missing?
>>>
>>The fact that it only applies to an ASP.net web browser session I
>>would think, in your example.
>>>
>>http://msdn2.microsoft.com/en-us/lib...sionstate.aspx
>>
>This answer is almost right. ASP.NET session state (even for web
>services) is kept in HTTP cookies. A web browser, naturally, knows
>how to store cookies and send them back on demand. In order to
>successfully use a service that maintains Session state, you need to
>do the same in your client programs.
>
Let's get this right now. An in-process setting for an ASP.NET
solution using Session State is being help in memory at the Web
server, which is most likely the case for the OP and his example. It's
not being held in cookies.

ASP.NET Session state uses a cookie to pass the session id to the
client. It expects to receive that cookie back on subsequent requests
so that it recognizes the request as being part of the same session.

Then what's a cookieless session in a ASP.NET browser solution about?
You don't need a cookie to hold a Session ID, which the Session ID is
placed in the URL.

I didn't say there was no such thing as a cookieless session. I said that
session state (by default) depends on a cookie.

I didn't say that you did say there was no such thing as a cookieless
session, but I did bring up that fact that there can be a cookieless
session, with Session ID state held without the use of a cookie.
>>
>>I must be missing something here, and the MS Training book for exam
70-528 must be wrong, when the book talks about a cookieless browser
session, using ASP,NET.

Does the book say that all session state is cookieless?

No, it didn't say that, but the fact remains, that there can be a
cookieless session, which I was told/shown that back in 2004 during .Net
training 8 hours for 4 weeks by a .Net guru out of India the company flew
in to do the training, which I have had no need to create an ASP.NET
solution that was cookieless to this point.
>>
>>Cookieless sessions are also being talked about in the link provided.

http://msdn2.microsoft.com/en-us/library/aa479314.aspx
No, cookies are not used to _hold_ session state. A single cookie is
used to hold a session id, which ASP.NET uses as the key to find the
particular Session dictionary it iwill make available to the web
service.

No, I didn't say that a cookie holds Session State, but a cookie can
hold state for a browser session.

I must be missing something here, when once again, MS MCTS Training
book for exam 70-528 talks about ASP.NET State Management, an entire
chapter concerning this.

Now, you and I might be talking two differrnt things. I am addressing
what's happening in a ASP.NET browser session when you said *it's almost
right*.

The OP was talking about web services.

No, the OP started out with ASP.Net and why a Session variable was held in
state with the Web service as opposed to why it was not held in state when
using a Console application with the Web service, which you most elegantly
gave a solution. :)
Ok, this has become a discussion over nothing, but just to get back to the
beginning, here's the original post:
------------
Hi

I've been experimenting with managing state using the Session object. I've
created a simple WS with a couple of methods, one which sets a string
value, another that retrieves it.

Each method has the WebMethodAttribute.EnableSession set to true.

When I run the test page the session is maintained. However, using a
console application, in between setting the string value and attempting to
retrieve it using the same instance of the client proxy, the value is lost.

What am I missing?
-----------

When the OP said "the test page", I assumed he meant the test page generated
by ASP.NET when you access a web service through a browser. You are correct
that this is an ASP.NET page. Also, since it is hosted in a browser, if the
web service used cookie-based session, it would be expected to work, as the
browser will accept the cookie containing the session id from the web
service and send it back, allowing ASP.NET to locate the session state for
the web service.

Note that he says nothing about configuring cookieless sessions, so one
might assume that the kind of session state he's using in his web service
uses a cookie to store the session id, as that is the default.

He goes on to say that this does not work when he uses a console
application. One reason this might not happen is if the session state
depends on a cookie, which his proxy class would normally not maintain. I
suggested he configure a CookieContainer for the proxy. I later posted a
Visual Studio 2005 solution that implemented a web service with session
state and a console client with a CookieContainer. The console application
works when the CookieContainer is configured, but not if that line is
commented out.

So, to the extend that my posted .sln is a reflection of the problem the OP
is having, it might be expected to solve that problem. I hope the OP will
try it and let us all know how it went.

Mr. Arnold, if web services can use cookieless session state, perhaps you
would post, showing us how that can be accomplished. I'm not saying that it
cannot be accomplished, but I've never seen it done.
--
John Saunders [MVP]
Jun 17 '07 #10
>
Mr. Arnold, if web services can use cookieless session state, perhaps you
would post, showing us how that can be accomplished. I'm not saying that
it cannot be accomplished, but I've never seen it done.
I have never done it myself. But I have pulled Session state data for
communications between an ASP.NET and Console application using a serialized
XML accessor object.

If I was in a cookieless state and wanted to save Session state information
with something as miniscule as some Session or state variables between a
Console or a .NET Service application, which is really what this thread is
about, using a Web service, I'll be using a serialized accessor object with
read/write of the XML file to a common directory to pull the information
to/from each application.

However, I would say that it's not a stops all and ends all solution.

Jun 17 '07 #11
Thanks to both of you for the lively debate.

I'm actually studying for 70-529, and the book I'm using mentioned
application Session, Application and client-side cookies as ways to manage
application state. If I'd actually read beyond the book I would have
spotted that Session and explicit use of the CookieContainer property would
have worked for my console app.

Now that I now about it I'll consider it for use in future, provided the
scenario is appropriate.

Once again, thanks to both of you.

Glenn
"Mr. Arnold" <MR. Ar****@Arnold.comwrote in message
news:OM**************@TK2MSFTNGP05.phx.gbl...
>
>>
Mr. Arnold, if web services can use cookieless session state, perhaps you
would post, showing us how that can be accomplished. I'm not saying that
it cannot be accomplished, but I've never seen it done.

I have never done it myself. But I have pulled Session state data for
communications between an ASP.NET and Console application using a
serialized XML accessor object.

If I was in a cookieless state and wanted to save Session state
information with something as miniscule as some Session or state variables
between a Console or a .NET Service application, which is really what this
thread is about, using a Web service, I'll be using a serialized accessor
object with read/write of the XML file to a common directory to pull the
information to/from each application.

However, I would say that it's not a stops all and ends all solution.

Jun 18 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Carson Saunders | last post by:
I have a C# client application that calls a web service. I implement the CookieContainer class on the client to ensure the session is kept. However, I'm having trouble with the session timeout. I...
6
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody see the situation when the VS refuses to debug the Web Service at all? I can't catch why, the initially created Web Service can be debugged very easy but after some changes...
4
by: Aidas Pasilis | last post by:
I'm saving some values to the Session state and get some strange results. To be short I'll write example code and standart behavior: Code Example:...
0
by: Saumin | last post by:
hi, i have a web service which does xyz stuff...i have a reference of it in my asp.net web application. i call the web service asynchronously and it all works fine on my local computer. i have the...
7
by: Ahmed Perlom | last post by:
Hi all, I am trying to start a windows application that has a GUI from a Windows service written in .NET 2.0. I have been searching on this for few days now with no avail. When using the...
3
by: dr | last post by:
I created a basic service using VS2005. Add OnPowerEvent method as detailed on MSDN and return false to a PowerBroadcastStatus.QuerySuspend notification. The service also has set...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
3
dmjpro
by: dmjpro | last post by:
plz send me a good link which can clearify me how the J2EE framework works i want the details information .... plz help thanx
5
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.