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

Session_End called when project is rebuilt

PCK
Thanks in advance for any help....

I have an application that uses the Session_End to perform some data access
against our database. This works as expected when a session times out.

However, when the .NET project is rebuilt the Session_End is automatically
called for any current sessions. However on rebuild I do not want my code in
Session_End to be called.

Can anyone explain why the Session_End is called or have a potential work
around so that my code in Session_End is not run when the project is rebuilt.

Nov 19 '05 #1
3 1386
Hello PCK,

Presumably because the dll changes. ASP.NET has a watch on the web.config
and the dll files. If these files change, the application is restarted (which
means all previous sessions will be dropped).

I'm concerned about why this is an issue... You're not rebuilding code on
a production site, are you?

--
Matt Berther
http://www.mattberther.com
Thanks in advance for any help....

I have an application that uses the Session_End to perform some data
access against our database. This works as expected when a session
times out.

However, when the .NET project is rebuilt the Session_End is
automatically called for any current sessions. However on rebuild I
do not want my code in Session_End to be called.

Can anyone explain why the Session_End is called or have a potential
work around so that my code in Session_End is not run when the project
is rebuilt.

Nov 19 '05 #2
PCK
Thanks for the reply Matt.

No I do not rebuild on production. But I will be building in development
and then publishing to production. I assume that this would make the same
dll changes as rebuilding production. Am I incorrect to assume this?

PCK

"Matt Berther" wrote:
Hello PCK,

Presumably because the dll changes. ASP.NET has a watch on the web.config
and the dll files. If these files change, the application is restarted (which
means all previous sessions will be dropped).

I'm concerned about why this is an issue... You're not rebuilding code on
a production site, are you?

--
Matt Berther
http://www.mattberther.com
Thanks in advance for any help....

I have an application that uses the Session_End to perform some data
access against our database. This works as expected when a session
times out.

However, when the .NET project is rebuilt the Session_End is
automatically called for any current sessions. However on rebuild I
do not want my code in Session_End to be called.

Can anyone explain why the Session_End is called or have a potential
work around so that my code in Session_End is not run when the project
is rebuilt.


Nov 19 '05 #3
When you push a new version out to production, it will cause an application
restart, thus ending all the sessions.

Try deploying at night, or when traffic activity is low.

bill

"PCK" <PC*@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
Thanks for the reply Matt.

No I do not rebuild on production. But I will be building in development
and then publishing to production. I assume that this would make the same
dll changes as rebuilding production. Am I incorrect to assume this?

PCK

"Matt Berther" wrote:
Hello PCK,

Presumably because the dll changes. ASP.NET has a watch on the web.config and the dll files. If these files change, the application is restarted (which means all previous sessions will be dropped).

I'm concerned about why this is an issue... You're not rebuilding code on a production site, are you?

--
Matt Berther
http://www.mattberther.com
Thanks in advance for any help....

I have an application that uses the Session_End to perform some data
access against our database. This works as expected when a session
times out.

However, when the .NET project is rebuilt the Session_End is
automatically called for any current sessions. However on rebuild I
do not want my code in Session_End to be called.

Can anyone explain why the Session_End is called or have a potential
work around so that my code in Session_End is not run when the project
is rebuilt.


Nov 19 '05 #4

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

Similar topics

10
by: Ryan McGeary | last post by:
In a <select> drop-down, the onchange event isn't called when scrolling through the dropdown using the mouse-wheel and when crossing over a new <optgroup>. Using the example below, notice how...
5
by: Paul Wilkinson | last post by:
How can I write a method that is called when an object goes out of scope? I've looked all over, so far I've only found discussions of how to write methods that don't = )
2
by: Reshma Prabhu | last post by:
Hello, I have developed a web site which uses forms authentication for authenticating users. The problem is that the site is divided into frames and so whenver the cookie expires each frame shows...
0
by: PCK | last post by:
Thanks in advance for any help.... I have an application that uses the Session_End to perform some data access against our database. This works as expected when a session times out. However,...
6
by: Annie | last post by:
Hi guys, I just want to do some clean up in the Session_End at Global.aspx. However, if the user closes the browser window that event is not fired. how can I call explicity protected void...
0
by: Flemming | last post by:
I'm using Remoting which is applied inside application_start. In ASP.NET 2.0 application_start seems to be called when shifting domains in the same application - i.e. http://mydomain.dk...
1
by: divy24 | last post by:
Is there any win32 api method called when a project gets loaded?
0
by: Nathan Sokalski | last post by:
I have a page with an UpdatePanel that contains several TextBoxes and Buttons. There is also a ListBox outside of the UpdatePanel that is used as a trigger to populate these TextBoxes. The Buttons...
3
by: natraj A V | last post by:
Which method will be called when executing a .exe file?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
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
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
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...

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.