473,703 Members | 2,341 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 WebMethodAttrib ute.EnableSessi on 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 3651

"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa******** ******@TK2MSFTN GP05.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 WebMethodAttrib ute.EnableSessi on 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.c omwrote in message
news:eq******** ******@TK2MSFTN GP05.phx.gbl...
>
"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa******** ******@TK2MSFTN GP05.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 WebMethodAttrib ute.EnableSessi on 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.c omwrote in message
news:eq******** ******@TK2MSFTN GP05.phx.gbl...
>
"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa******** ******@TK2MSFTN GP05.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 WebMethodAttrib ute.EnableSessi on 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.CookieC ontainer = new CookieContainer (); // Other overloads
exist
service.SetSess ionValue("strin g");
string returnedValue = service.GetSess ionValue();
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
HttpWebClientPr otocol class, especially the Proxy, ClientCertifica tes,
Timeout, UseDefaultCrede ntials and Credentials properties.
--
John Saunders [MVP]
Jun 16 '07 #4

"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC******** ******@TK2MSFTN GP05.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eq******** ******@TK2MSFTN GP05.phx.gbl...
>>
"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa******* *******@TK2MSFT NGP05.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 WebMethodAttrib ute.EnableSessi on 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.c omwrote in message
news:OI******** ******@TK2MSFTN GP05.phx.gbl...
>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC******** ******@TK2MSFTN GP05.phx.gbl...
>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eq******* *******@TK2MSFT NGP05.phx.gbl.. .
>>>
"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa****** ********@TK2MSF TNGP05.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 WebMethodAttrib ute.EnableSessi on 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.saunder s at trizetto.comwro te in message
news:O%******** *******@TK2MSFT NGP06.phx.gbl.. .
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:OI******** ******@TK2MSFTN GP05.phx.gbl...
>>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC******* *******@TK2MSFT NGP05.phx.gbl.. .
>>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eq****** ********@TK2MSF TNGP05.phx.gbl. ..

"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa***** *********@TK2MS FTNGP05.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 WebMethodAttrib ute.EnableSessi on 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
attemptin g 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.c omwrote in message
news:eM******** *****@TK2MSFTNG P06.phx.gbl...
>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:O%******** *******@TK2MSFT NGP06.phx.gbl.. .
>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:OI******* *******@TK2MSFT NGP05.phx.gbl.. .
>>>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC****** ********@TK2MSF TNGP05.phx.gbl. ..
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eq***** *********@TK2MS FTNGP05.phx.gbl ...
>
"Glenn" <gl**********@y ahoo.co.ukwrote in message
news:Oa**** **********@TK2M SFTNGP05.phx.gb l...
>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 WebMethodAttrib ute.EnableSessi on 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
>attempti ng 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.saunder s at trizetto.comwro te in message
news:OE******** ******@TK2MSFTN GP03.phx.gbl...
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eM******** *****@TK2MSFTNG P06.phx.gbl...
>>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:O%******* ********@TK2MSF TNGP06.phx.gbl. ..
>>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:OI****** ********@TK2MSF TNGP05.phx.gbl. ..

"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC***** *********@TK2MS FTNGP05.phx.gbl ...
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eq**** **********@TK2M SFTNGP05.phx.gb l...
>>
>"Glenn" <gl**********@y ahoo.co.ukwrote in message
>news:Oa*** ***********@TK2 MSFTNGP05.phx.g bl...
>>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 WebMethodAttrib ute.EnableSessi on 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
>>attemptin g 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
successfull y 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.c omwrote in message
news:ed******** ******@TK2MSFTN GP02.phx.gbl...
>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:OE******** ******@TK2MSFTN GP03.phx.gbl...
>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eM******* ******@TK2MSFTN GP06.phx.gbl...
>>>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:O%****** *********@TK2MS FTNGP06.phx.gbl ...
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:OI***** *********@TK2MS FTNGP05.phx.gbl ...
>
"John Saunders [MVP]" <john.saunder s at trizetto.comwro te in message
news:uC**** **********@TK2M SFTNGP05.phx.gb l...
>"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
>news:eq*** ***********@TK2 MSFTNGP05.phx.g bl...
>>>
>>"Glenn" <gl**********@y ahoo.co.ukwrote in message
>>news:Oa** ************@TK 2MSFTNGP05.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 WebMethodAttrib ute.EnableSessi on 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
>>>attempti ng 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
>successful ly 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 WebMethodAttrib ute.EnableSessi on 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

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

Similar topics

0
513
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 have set the timeout to be one minute and have done this in IIS, in web.config, and in global.asax. My problem/question relates to the re-use of the session ID. When I start my client app, I retrieve the session ID from the web service by...
6
25198
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 in a source code, maybe the source code becomes bigger that some hidden threshold, the debugger can't enter into this code anymore. I can use this web service, all methods but can't see in debugger what's going on. I have already catched this...
4
15242
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: ///////////////////////////////////////////////////////////////////////////////////////// private void WriteToSessionButton_Click(object sender, , System.EventArgs e) { Session = "My value";
0
1043
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 url behaviour property set to dynamic. Now my asp.net web application is part of a bigger application from which it inherits styles, session variables, etc., but i dont haave it (bigger app) setup on my local computer so when i move my web...
7
2407
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 System.Diagnostic.Process object to start the application (i.e Notepad), the new app runs and it is listed on the task manger list, but the GUI doesn't show up in the desktop of the current user. I am aware windows service (either LocalSystem,...
3
2403
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 CanHandlePowerEvent = true. But the service still fails to reject standby. If I do the same in VS2003, it does reject standby, anyone else done or seen this with VS2005? Even if I set the code to return false to all PowerBroadcastStatus events, it still doesn't...
11
7910
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 applications. As far as I can see, the Session approach is non-standard since Web Services are supposed to be agnostic with respect to their clients. It seems that cookies are outside the Web Service standard; therefore, such a Web Service application...
3
6619
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
5898
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 about asp.net session state service? -Billy
0
8759
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8669
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8963
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6588
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4433
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2453
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.