473,325 Members | 2,712 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,325 software developers and data experts.

Application on end & session not firing


HI,

am using a simple project in asp.net using c#.

if i put the break point in the application start & session start event
, they are firing good .BUT WHEN i close my project while running on IE,
the session end & application end event are not firing even though i put
the break point there.

Could u give me the solution for this how i could trace those.

With Regards
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
5 2443
Hello Raghu,

Those events are not fired when you close the project, the Session OnEnd is fired when the session times out or is closed explicitly using Session.Abandon(). To trigger the Application End event, you should restart the web site or the IIS service.
Try calling Session.Abandon() from a webform.

Greeting!
-----
Ariel Popovsky

HI,

am using a simple project in asp.net using c#.

if i put the break point in the application start & session start
event , they are firing good .BUT WHEN i close my project while
running on IE, the session end & application end event are not firing
even though i put the break point there.

Could u give me the solution for this how i could trace those.

With Regards
Raghu
*** Sent via Developersdex http://www.developersdex.com *** Don't just
participate in USENET...get rewarded for it!


Nov 18 '05 #2
"Raghu Raman" <ra************@rediffmail.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Could u give me the solution for this how i could trace those.


Your Session doesn't end just by closing your browser or your Web project -
the Session will end when you EXPLICITLY end it, or when it times out
naturally, and that's when the Session_OnEnd will fire

Same with Application_OnEnd, which will fire when the very last connected
Session is explicitly ended or times out naturally...
Nov 18 '05 #3
The Session_End event should fire, but not when the user drops the browser.
It happens when the session times out, which is generally 10 to 20 minutes
later. Also Session_End is supported only in InProc mode.

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"Raghu Raman" <ra************@rediffmail.com> wrote in message
news:#8**************@TK2MSFTNGP10.phx.gbl...

HI,

am using a simple project in asp.net using c#.

if i put the break point in the application start & session start event
, they are firing good .BUT WHEN i close my project while running on IE,
the session end & application end event are not firing even though i put
the break point there.

Could u give me the solution for this how i could trace those.

With Regards
Raghu
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

Hi,

My hearty thanks to all of u people.

.Ya i got it clear with the session _end event and it works nice.

But , If i close the browser also, i need to log_off the user or it may
be enough to call the session_end event.

**

Now, could you please tell me how can i identify when the user closes
the application.Because i am doing the database updations about the
status(y/n ;y->Logged in;N->logged out )of the user in the session_end
event.

I need to call this event , even the user closes his browser.

For example if we close the yahoo,rediff,etc browser after having seen
our mails, it is assumed that the user has quit from yahoo,rediff etc.
So the user no longer is allowed to enter into the web .He has to give
his user id & password agin .
Hearty Thanks

Raghu


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5

"Raghu Raman" <ra************@rediffmail.com> wrote in message
news:ul*************@TK2MSFTNGP10.phx.gbl...

Hi,

My hearty thanks to all of u people.

Ya i got it clear with the session _end event and it works nice.

But , If i close the browser also, i need to log_off the user or it may
be enough to call the session_end event.

**

Now, could you please tell me how can i identify when the user closes
the application.Because i am doing the database updations about the
status(y/n ;y->Logged in;N->logged out )of the user in the session_end
event.

I need to call this event , even the user closes his browser.

For example if we close the yahoo,rediff,etc browser after having seen
our mails, it is assumed that the user has quit from yahoo,rediff etc.
So the user no longer is allowed to enter into the web .He has to give
his user id & password agin .


Looks like they use memory-only cookies. And they expire automatically "when
you close the browser". In fact, system doesn't know anything about your
state until you try to access any page again and your browser send no
cookies. This way system decides that your session has been expired.

Dmitry
Nov 18 '05 #6

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

Similar topics

2
by: Jim Owen | last post by:
I know I';ve posted on this topic before, but it still doesn't work. I have a Session_End event in my Global.asax file, but it never fires. I have gone into my web.config file and in session...
1
by: Barel Yoav | last post by:
Can I access the session & application variables of asp 3.0 from aspx or *.vb page
3
by: Alex Maghen | last post by:
Let's say I store a real simple value in the Session as follows Session = "Alex" Later, in a different page, I try to do something like SomeLabel.Text = Session When I do this, I get a...
3
by: Jeremy | last post by:
I am relativly new to ASP.NET, and my question is this: Is it better to create a wrapper class that contains all the running settings for the application and then load that into the app state, or...
6
by: Chase | last post by:
I'm pretty new to asp.net and am having problems with my application timing out. I've written an application that loops through all of the information on an excel spreadsheet and does certain...
3
by: simon | last post by:
In global.asax.vb I have: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) ' Fires when the application is started Application("OZN") = "HUF" End Sub But then on some the...
5
by: msuk | last post by:
All, I have a VB.NET/ASP.NET application that uses some common data throughout. Now what I would like to do is instead of hitting the database every time to fetch back two dataset of 5 rows 2...
3
by: =?Utf-8?B?bWdvcHBlcnQ=?= | last post by:
I'm having an issue with using web services in a web application marked with session cookieless attribuet set to "AutoDetect". My real life scenario is too complex to lay out but here's my...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.