473,324 Members | 1,678 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,324 software developers and data experts.

Why can't Application state be managed like Session state?

Session state has options to be inproc, state server or sql server. Why does
Application state not allow for state server or sql server so the same
Application state could be shared between servers in a farm?

Nov 19 '05 #1
6 1735
Application state is rather considered as local and IMO the interest of
doing this would really depend on what you store.

What read/write value would you like to share accross the farm ?

--
Patrice

"Eric McVicker" <jo**@newsgroups.nospam> a écrit dans le message de
news:8A**********************************@microsof t.com...
Session state has options to be inproc, state server or sql server. Why does Application state not allow for state server or sql server so the same
Application state could be shared between servers in a farm?

Nov 19 '05 #2
application state applies to the process not the machine, if you want a
global store you should consider using a database or a third party product
or file across webfarms

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Eric McVicker" <jo**@newsgroups.nospam> wrote in message
news:8A**********************************@microsof t.com...
Session state has options to be inproc, state server or sql server. Why does Application state not allow for state server or sql server so the same
Application state could be shared between servers in a farm?

Nov 19 '05 #3
session state only allows one request at a time (across the farm if out of
proc), this prevents several issues with consistency. this would be a real
performance problem with application state (only 1 request at time across
the farm).

..net 2.0 (with sql2005) allows you cache an object and use a sqlserver
dependency, to be notified of a change, but no consistency is guaranteed.

-- bruce (sqlwork.com)
"Eric McVicker" <jo**@newsgroups.nospam> wrote in message
news:8A**********************************@microsof t.com...
Session state has options to be inproc, state server or sql server. Why
does
Application state not allow for state server or sql server so the same
Application state could be shared between servers in a farm?

Nov 19 '05 #4
I was mainly asking to see if MS did not allow for sharing Application state
for a web application in a web farm because of a technical reason or a design
reason. Since Session state can be shared across a web farm, why not
Application state?

One reason I could see is the problem with locking Application property bags
across machines. Just wanted to know if anyone was aware of specific reasons
from ASP.Net devs.
Thanks

Nov 19 '05 #5
Hi Joac,

AS for the ASP.NET's HttpApplicationState, actually it's existing for
backward compatiblity to classic ASP's applicaitonState. There it no plan
to design it for cross application(cross appdomain) usage. For Application
wide usage, what ApplicationState can do can also be done through ASP.NET
applcation Cache. And Cache provide further advanced expiring and
dependency support. Also, since application state is application instance
specific, after applicaiton restart or process recycle, they'll no longer
be kept...

As for SessionState, since it is associated with a certain clientside
browser connection ,so it's important and necessary to provide external
persistence store for SessionState datas so as to keep them between
application restart or server process recycle.

Currently , for using ASP.NET in webfarm/ webgarden scenario, the State
management is really a critical point we need to consider since there is no
build-in external Application State persistence mechanism in ASP.NET.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| Thread-Topic: Why can't Application state be managed like Session state?
| thread-index: AcXj0c1EZ76Po+YZQ0y6j7HAAAwY2g==
| X-WBNR-Posting-Host: 216.201.157.114
| From: "=?Utf-8?B?RXJpYyBNY1ZpY2tlcg==?=" <jo**@newsgroups.nospam>
| References: <8A**********************************@microsoft.co m>
<#y**************@tk2msftngp13.phx.gbl>
| Subject: Re: Why can't Application state be managed like Session state?
| Date: Mon, 7 Nov 2005 11:31:08 -0800
| Lines: 12
| Message-ID: <33**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:136708
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I was mainly asking to see if MS did not allow for sharing Application
state
| for a web application in a web farm because of a technical reason or a
design
| reason. Since Session state can be shared across a web farm, why not
| Application state?
|
| One reason I could see is the problem with locking Application property
bags
| across machines. Just wanted to know if anyone was aware of specific
reasons
| from ASP.Net devs.
|
|
| Thanks
|
|

Nov 19 '05 #6
Hi Joac,

Have you got any further ideas on this question? If there're anything else
we can help, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 60528286
| References: <8A**********************************@microsoft.co m>
<#y**************@tk2msftngp13.phx.gbl>
<33**********************************@microsoft.co m>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online.microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Tue, 08 Nov 2005 03:01:14 GMT
| Subject: Re: Why can't Application state be managed like Session state?
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <4y**************@TK2MSFTNGXA01.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 72
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:136813
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Joac,
|
| AS for the ASP.NET's HttpApplicationState, actually it's existing for
| backward compatiblity to classic ASP's applicaitonState. There it no plan
| to design it for cross application(cross appdomain) usage. For
Application
| wide usage, what ApplicationState can do can also be done through ASP.NET
| applcation Cache. And Cache provide further advanced expiring and
| dependency support. Also, since application state is application
instance
| specific, after applicaiton restart or process recycle, they'll no longer
| be kept...
|
| As for SessionState, since it is associated with a certain clientside
| browser connection ,so it's important and necessary to provide external
| persistence store for SessionState datas so as to keep them between
| application restart or server process recycle.
|
| Currently , for using ASP.NET in webfarm/ webgarden scenario, the State
| management is really a critical point we need to consider since there is
no
| build-in external Application State persistence mechanism in ASP.NET.
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
|
| --------------------
| | Thread-Topic: Why can't Application state be managed like Session state?
| | thread-index: AcXj0c1EZ76Po+YZQ0y6j7HAAAwY2g==
| | X-WBNR-Posting-Host: 216.201.157.114
| | From: "=?Utf-8?B?RXJpYyBNY1ZpY2tlcg==?=" <jo**@newsgroups.nospam>
| | References: <8A**********************************@microsoft.co m>
| <#y**************@tk2msftngp13.phx.gbl>
| | Subject: Re: Why can't Application state be managed like Session state?
| | Date: Mon, 7 Nov 2005 11:31:08 -0800
| | Lines: 12
| | Message-ID: <33**********************************@microsoft.co m>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="Utf-8"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | Content-Class: urn:content-classes:message
| | Importance: normal
| | Priority: normal
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:136708
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | I was mainly asking to see if MS did not allow for sharing Application
| state
| | for a web application in a web farm because of a technical reason or a
| design
| | reason. Since Session state can be shared across a web farm, why not
| | Application state?
| |
| | One reason I could see is the problem with locking Application property
| bags
| | across machines. Just wanted to know if anyone was aware of specific
| reasons
| | from ASP.Net devs.
| |
| |
| | Thanks
| |
| |
|
|

Nov 19 '05 #7

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

Similar topics

3
by: Grinninger | last post by:
Hello, I am using ASP.NET, C# under W2K. I try to keep some important information in application- and session-state Objects. With the recycling of the ASPNet_WP.EXE my application- and...
6
by: John Baughman | last post by:
I migrated a Sharepoint Team Services website to a Sharepoint website on Windows 2003. The site was working well on the old server. After the migration any asp.net page that uses session...
9
by: charliewest | last post by:
Hello - I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is there any way to temporarily save an image to a session object, and after running some other operations, later...
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:...
6
by: spacehopper_man | last post by:
I'm considering ditching all use of Session state in favour of Application state. This is because - from what I can work out - it will be more memory efficient for me. I have three questions:...
6
by: KevinGravelle | last post by:
What is wrong with this picture? I'm trying to set my shopping cart text on my home page using the following function that is executed when the class is constructed: protected string...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
1
by: Andy | last post by:
Hi Gang I need help. I have an ASP application that in a nutshell allows data entry on a main page. The problem is I'll have users that enter some data and save it. Then they'll enter some...
1
by: dities13 | last post by:
Hello all and thank you for your time. We have a 3rd party application written for my office (vb.net 2.0 framework). However, we are getting reports of slow response time and do not believe it...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: 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...

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.