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

after appdomain recycles, what happens to sessions?

I believe the AppDomain can be recycled by IIS, right? When this happens,
what happens to the Application and Session variables that existed for the
AppDomain? Are they carried over to the new AppDomain for furture requests
from the user, or are they disposed of?
Nov 19 '05 #1
3 1213
Thay are disposed, since there's no connection
between the previous instance of the AppDomain
and the current one.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ul****************@TK2MSFTNGP12.phx.gbl...
I believe the AppDomain can be recycled by IIS, right? When this happens, what happens
to the Application and Session variables that existed for the AppDomain? Are they
carried over to the new AppDomain for furture requests from the user, or are they
disposed of?

Nov 19 '05 #2
if you use inproc sessions, they are gone (as they are stored in the
appdomain).

-- bruce (sqlwork.com)
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ul****************@TK2MSFTNGP12.phx.gbl...
I believe the AppDomain can be recycled by IIS, right? When this happens,
what happens to the Application and Session variables that existed for the
AppDomain? Are they carried over to the new AppDomain for furture requests
from the user, or are they disposed of?

Nov 19 '05 #3
Technically, they wouldn't be carried over to the
new AppDomain, right ? ( even if they are persisted... )

They would be carried over to either the State Server or to SQL Server.
The new AppDomain could access them, though.

;-)

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
"Bruce Barker" <br******************@safeco.com> wrote in message
news:uG****************@TK2MSFTNGP15.phx.gbl...
if you use inproc sessions, they are gone (as they are stored in the appdomain).

-- bruce (sqlwork.com)
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:ul****************@TK2MSFTNGP12.phx.gbl...
I believe the AppDomain can be recycled by IIS, right? When this happens, what happens
to the Application and Session variables that existed for the AppDomain? Are they
carried over to the new AppDomain for furture requests from the user, or are they
disposed of?


Nov 19 '05 #4

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

Similar topics

4
by: Jaans | last post by:
I have a problem that relates to running "cleanup" code when an application is forcibly ended using the "End Process" of "Task Manager" (Please note that this is very different from "End Task"...
20
by: Doug Thews | last post by:
I ran into an interesting re-pain delay after calling the Abort() method on a thread, but it only happens the very first time I call it. Every time afterward, there is no delay. I've got a...
2
by: cameron | last post by:
I have a page that needs to process aproximately 7000 LDAP entries and does 10-12 SQL DB calls per entry. It is a busy, busy page. I have it schedualed to run every night at 4 am server time. It...
1
by: srivalli c via DotNetMonster.com | last post by:
Hi, When asp.net worker process or application pool recycles, is it guaranteed that the Session_End event fires for all active sessions? Any help is greatly appreciated. Thanks in advance....
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:...
5
by: jake | last post by:
I've seen many articles that claim the files in the App_Code directory are treated in the same way as aspx-files in ASP 1.1. Well, this does not seem to be the case, at least in Web Developer 2005...
0
by: MumHa | last post by:
On ASPNET 2.0 when I call Directory.Delete to delete any sub-directory (ps: "MyDirectory") the appdomain is restarted and all sessions are lost, but on ASPNET 1.1 the appdomain doesn't restart. ...
0
by: Chris van de Steeg | last post by:
In iis6 there is this feature to recycle your appdomain at certain tresholds, great. But I recently ran into strange problems when my appdomain was recycled. When my application starts, it loops...
10
by: =?Utf-8?B?U3RlZmFuIEJhcmxvdw==?= | last post by:
This has been working perfectly for months. Since we switched from ASP.NET 1.1 to 2.0, we have constant and sporadic issues with updating our applications. Touching the web.config works about...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.