473,769 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session_End doesn't fire after uploading new code to live server

I use the session_end in global.asax to perform clean-up of a temporary
shopping cart table. Shoppping Cart items are stored with a session id in
the table, and when a session ends a small rountine checks the shopping cart
table and deletes any stray items.

This has worked a treat for weeks but stopped working today when I uploaded
news dlls and aspx pages to the live server using FTP.

Nothing has changed code-wise and all relevant settings are applied in
web.config.

Is this a known problem? The site in question is very busy and I'd like to
avoid stop-starting IIS id possible.

Kind regards

Ben
Nov 18 '05 #1
3 1424
Hi Ben,
This has worked a treat for weeks but stopped working today when I uploaded news dlls and aspx pages to the live server using FTP.
Offhand, I'd say it has something to do with the new dlls and aspx pages you
uploaded, in that case.
Nothing has changed code-wise and all relevant settings are applied in
web.config.
Then what was in the new dlls and aspx pages you uploaded?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ben Fidge" <be*******@btop enworld.com> wrote in message
news:ep******** *****@TK2MSFTNG P10.phx.gbl... I use the session_end in global.asax to perform clean-up of a temporary
shopping cart table. Shoppping Cart items are stored with a session id in
the table, and when a session ends a small rountine checks the shopping cart table and deletes any stray items.

This has worked a treat for weeks but stopped working today when I uploaded news dlls and aspx pages to the live server using FTP.

Nothing has changed code-wise and all relevant settings are applied in
web.config.

Is this a known problem? The site in question is very busy and I'd like to
avoid stop-starting IIS id possible.

Kind regards

Ben

Nov 18 '05 #2
Hi Kevin,

Sorry I wasn't very clear! There was minor changes to some of the pages html
and some small coding changes to the pages. The code in the global.asax
hasn't been changed for quite a while though.

Ben

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oq******** ******@TK2MSFTN GP14.phx.gbl...
Hi Ben,
This has worked a treat for weeks but stopped working today when I

uploaded
news dlls and aspx pages to the live server using FTP.


Offhand, I'd say it has something to do with the new dlls and aspx pages
you
uploaded, in that case.
Nothing has changed code-wise and all relevant settings are applied in
web.config.


Then what was in the new dlls and aspx pages you uploaded?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ben Fidge" <be*******@btop enworld.com> wrote in message
news:ep******** *****@TK2MSFTNG P10.phx.gbl...
I use the session_end in global.asax to perform clean-up of a temporary
shopping cart table. Shoppping Cart items are stored with a session id in
the table, and when a session ends a small rountine checks the shopping

cart
table and deletes any stray items.

This has worked a treat for weeks but stopped working today when I

uploaded
news dlls and aspx pages to the live server using FTP.

Nothing has changed code-wise and all relevant settings are applied in
web.config.

Is this a known problem? The site in question is very busy and I'd like
to
avoid stop-starting IIS id possible.

Kind regards

Ben


Nov 18 '05 #3
Hi Ben,

Just because you didn't make any changes to the global.asax doesn't mean
that you didn't make any changes that affect your Sessions, which are
available to all of your code.

Here's the thing: Your app worked "a treat" until you performed a specific
action, which was uploading new code to the app. Therefore, the logical
first place to look for a problem would be in the new code you uploaded. In
other words, that is the most likely suspect, and would be therefore, the
first place to look. Always eliminate the most likely first. If that doesn't
work, look elsewhere.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ben Fidge" <be*******@btop enworld.com> wrote in message
news:#J******** ******@TK2MSFTN GP14.phx.gbl...
Hi Kevin,

Sorry I wasn't very clear! There was minor changes to some of the pages html and some small coding changes to the pages. The code in the global.asax
hasn't been changed for quite a while though.

Ben

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:Oq******** ******@TK2MSFTN GP14.phx.gbl...
Hi Ben,
This has worked a treat for weeks but stopped working today when I

uploaded
news dlls and aspx pages to the live server using FTP.


Offhand, I'd say it has something to do with the new dlls and aspx pages
you
uploaded, in that case.
Nothing has changed code-wise and all relevant settings are applied in
web.config.


Then what was in the new dlls and aspx pages you uploaded?

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Ben Fidge" <be*******@btop enworld.com> wrote in message
news:ep******** *****@TK2MSFTNG P10.phx.gbl...
I use the session_end in global.asax to perform clean-up of a temporary
shopping cart table. Shoppping Cart items are stored with a session id in the table, and when a session ends a small rountine checks the shopping

cart
table and deletes any stray items.

This has worked a treat for weeks but stopped working today when I

uploaded
news dlls and aspx pages to the live server using FTP.

Nothing has changed code-wise and all relevant settings are applied in
web.config.

Is this a known problem? The site in question is very busy and I'd like
to
avoid stop-starting IIS id possible.

Kind regards

Ben



Nov 18 '05 #4

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

Similar topics

3
566
by: Guadala Harry | last post by:
Just wondering if Session_End *always fires* for every Session. I know that IIS times out sessions after a default 20 min (unless changed) and there's no way to know when a user actually closed a browser (unless I provide a "log out" button that kills the session explicitly, and we can't guarantee the user will click on that). What I am wondering if there are there well-known/documented circumstances under which Session_End will NOT fire...
4
3112
by: news.microsoft.com | last post by:
For some odd reason, session start fires but session_end does not. I am running the web server inproc, the web.config is configured as: <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="true" timeout="1"
3
1610
by: MattB | last post by:
Hi. I have a couple of questions regarding the Session_End event. I have some clean-up code in this event and it does fire when the session times out, which is good. I also want to have this (or similar) code fire when the session ends prematurely, like when the browser window is closed or Session.Clear is called. It appears that does not happen, but is there any way I can force it or is there a different event that would fire in these...
5
1471
by: gce | last post by:
Hi, Every session I make a temp directory using Session("SessieGuid") = System.Guid.NewGuid().ToString Whenever the user presses a button to end everything or when the session.timeout fires up, I need to remove the directory. My question : 1. What command is needed behind the END-button to close the session
11
2826
by: OldProgrammer | last post by:
All the documentation and discussion I have read indicate that the Session_End is not supposed to fire unless you are in "inProc" Session state mode, and then only on Session Timeout or at Session Abandon. I need the event to fire at Session timeout in order to capture and store the Datetime this occurs. However in the application I am writing, I have been unable discern any indication that the event is firing. I have used break...
7
9281
by: Bruno | last post by:
We are attempting to automatically log users off from the Session_End event in global.asax and set some values on session_start. It is not a critical task, more of a housekeeping task so that we know if users have closed down their browsers without logging off first. However, although the code seems to run OK on our development servers (WinXP ASP.NET v. 1.1, SQL Server 2000, IIS6), they don't seem to be firing on the live server despite...
8
5770
by: Roger | last post by:
When I call the session.abandon() method, it calls the session_end event. When a user closes the browser or clicks the log off button, I can dispose of objects and abandon the session cleaning. But, when a user either navigates away from the web app and when the session timesout, the session_end event does not seem to fire. Or when else can I dispose of objects? Or is there an event I can you that is fired when a user navigates away from...
12
10698
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they manually log OUT of the site, I have no problem deleting them from the PeopleOnline table. But if they just close the browser, I was assuming I'd have to use the Session_End() event in Global.asax even though I know that this will only occur once the...
5
2764
by: Ron J | last post by:
I would like to keep track of users when they are 'on'. On Session_Start I can write a DB record about them, but there does not seem to be session variable information during the Session_end event which I could use to update the record that they are logged out. This would also be nice to limit multiple logins. Is there a preferred way to track users login / logout /session time and multiple logins ? TIA
0
9586
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
9423
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
10210
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
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...
0
9861
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...
0
8869
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5298
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...
1
3956
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 we have to send another system
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.