473,508 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

advantages of State Server over InProc server

What are the advantages of using ASP.NET's session state server service over
using InProc state sessions? Also if you have a state server service
running, is there any way to find out when a session ended? with the inproc
ones you can use the global.asax's session_ended method...
May 7 '07 #1
4 2272
Technically, the model is supposed to be the same no matter what model. In
reality, there are bumps.

I am not sure about the state_end condition, as I rarely stick things into
session that cannot be automagically cleaned up, if I use session at all.
Someone else will have to tackle that one, but I would assume it works
pretty much the same, with the exception of potentially having that event
fire on multiple machines. No big deal really, as the actual state mechanism
is centralized.

What is the benefit? Scalability primarily. You can add machines to your web
farm without worrying about controlling state. If you have to keep state
over a failure, there is also SQL Server as an option. Note that you do
trade a bit of performance for this scalability.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
What are the advantages of using ASP.NET's session state server service
over using InProc state sessions? Also if you have a state server service
running, is there any way to find out when a session ended? with the
inproc ones you can use the global.asax's session_ended method...
May 7 '07 #2
1) Memory consumption. If you store a lot of data in session variables, you
will likely observe that the asp.net process memory grows with time.

2) Restarting IIS won't affect your session variables.

Session_ended event is not very reliable anyway.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
What are the advantages of using ASP.NET's session state server service
over using InProc state sessions? Also if you have a state server service
running, is there any way to find out when a session ended? with the
inproc ones you can use the global.asax's session_ended method...

May 7 '07 #3

The objects that go into Sql Server state management, must be [Serializable]
fyi.


"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
What are the advantages of using ASP.NET's session state server service
over
using InProc state sessions? Also if you have a state server service
running, is there any way to find out when a session ended? with the
inproc
ones you can use the global.asax's session_ended method...


May 7 '07 #4
So too for the outproc Session state service.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"sloan" <sl***@ipass.netwrote in message
news:un*************@TK2MSFTNGP02.phx.gbl...
>
The objects that go into Sql Server state management, must be
[Serializable]
fyi.


"Smokey Grindle" <no****@dontspamme.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>What are the advantages of using ASP.NET's session state server service
over
>using InProc state sessions? Also if you have a state server service
running, is there any way to find out when a session ended? with the
inproc
>ones you can use the global.asax's session_ended method...



May 7 '07 #5

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

Similar topics

4
2303
by: Chad Crowder | last post by:
I've taken a look at this article http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp which someone posted a month or so ago regarding setting up SQL...
6
1986
by: Steven Spits | last post by:
Hi, We're thinking of moving session from inproc to a state server. My question is: should we expect a difference in performance? Is it noticeable? Steven - - -
4
1587
by: tshad | last post by:
I am running with Sql Server and am curious if I should use in-process, State Server, or SQL Server. By default, I assume I am using in-process (I could be wrong here, however). I am not...
3
3302
by: bennett | last post by:
In the web.config file for my application, in the <sessionState> section I have set timeout="120" (in minutes), but session state variables in my application seem to be expiring in about 5 minutes....
10
3478
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
13
2423
by: James Hunter Ross | last post by:
We love the ASP.NET "Session" concept and make good use of it. But, getting close to deployment we find we lose sessions far too often, probably due to application restarts, etc. We hope to...
4
2146
by: Alex | last post by:
Hello, This is a follow-up to my earlier post about having issues with our application pool recycling. We currently use Session State InProc, but if I were to choose to move the existing...
5
5877
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
7227
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,...
0
7127
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...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7054
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...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5056
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...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.