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

Session End does not fire

I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.

How can I test this? What is a good way to test if it's working?

Thanks
Nov 20 '05 #1
6 3238
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.

-Rob Teixeira [MVP]

"Tony" <To***********@msn.com> wrote in message
news:OO*************@TK2MSFTNGP11.phx.gbl...
I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.

How can I test this? What is a good way to test if it's working?

Thanks

Nov 20 '05 #2
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?

Thanks

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.

-Rob Teixeira [MVP]

"Tony" <To***********@msn.com> wrote in message
news:OO*************@TK2MSFTNGP11.phx.gbl...
I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.

How can I test this? What is a good way to test if it's working?

Thanks


Nov 20 '05 #3
in your web.config file, check for this element:

http://msdn.microsoft.com/library/de...atesection.asp

-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?

Thanks

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.

-Rob Teixeira [MVP]

"Tony" <To***********@msn.com> wrote in message
news:OO*************@TK2MSFTNGP11.phx.gbl...
I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.

How can I test this? What is a good way to test if it's working?

Thanks



Nov 20 '05 #4


Ok it was already set to in-proc management state.
what is a good test to see what I'm doing wrong?
the session_start works perfect. but the session_end doesn't seem to work?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
in your web.config file, check for this element:

http://msdn.microsoft.com/library/de...atesection.asp
-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?

Thanks

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.

-Rob Teixeira [MVP]

"Tony" <To***********@msn.com> wrote in message
news:OO*************@TK2MSFTNGP11.phx.gbl...
> I can't seem to get the session_end event to work?
> I've tried to update databases in it and response.redirect to someplace > else.
> Nothing works.
> I load page and leave it for 60 minutes and I know that the session id > expired.
> I used session.abandon and it didn't fire the session_end.
>
> How can I test this? What is a good way to test if it's working?
>
> Thanks
>
>



Nov 20 '05 #5
If you are already using the in-proc session managemer, there's only one
other thing i can think of. Session only gets established (if i remember
correctly) when you stuff something into session and a request is completely
fulfilled. If the user's visit to the site never puts any data into session
state, this user won't have an established session, and no session_end will
fire.

Try stuffing something into session on a page, and then call
Session.Abandon() to see if it fires.

-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...


Ok it was already set to in-proc management state.
what is a good test to see what I'm doing wrong?
the session_start works perfect. but the session_end doesn't seem to work?
Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
in your web.config file, check for this element:

http://msdn.microsoft.com/library/de...atesection.asp

-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?

Thanks

"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> It only works if you use in-proc session state manager.
> If you use state server or db state server, you're out of luck.
>
> -Rob Teixeira [MVP]
>
> "Tony" <To***********@msn.com> wrote in message
> news:OO*************@TK2MSFTNGP11.phx.gbl...
> > I can't seem to get the session_end event to work?
> > I've tried to update databases in it and response.redirect to

someplace
> > else.
> > Nothing works.
> > I load page and leave it for 60 minutes and I know that the
session id > > expired.
> > I used session.abandon and it didn't fire the session_end.
> >
> > How can I test this? What is a good way to test if it's working?
> >
> > Thanks
> >
> >
>
>



Nov 20 '05 #6
thanks very for your help
Did that also.
well if you can think of anything else drop me a note
thanks anyway
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
If you are already using the in-proc session managemer, there's only one
other thing i can think of. Session only gets established (if i remember
correctly) when you stuff something into session and a request is completely fulfilled. If the user's visit to the site never puts any data into session state, this user won't have an established session, and no session_end will fire.

Try stuffing something into session on a page, and then call
Session.Abandon() to see if it fires.

-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:OC**************@tk2msftngp13.phx.gbl...


Ok it was already set to in-proc management state.
what is a good test to see what I'm doing wrong?
the session_start works perfect. but the session_end doesn't seem to work?


Thanks
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
in your web.config file, check for this element:

http://msdn.microsoft.com/library/de...atesection.asp

-Rob Teixeira [MVP]

"Tony" <To************@msn.com> wrote in message
news:Oa**************@TK2MSFTNGP11.phx.gbl...
> How can I set things to use in-proc session state manager or is that
> controlled by the hosting service of my website?
>
> Thanks
>
> "Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
> > It only works if you use in-proc session state manager.
> > If you use state server or db state server, you're out of luck.
> >
> > -Rob Teixeira [MVP]
> >
> > "Tony" <To***********@msn.com> wrote in message
> > news:OO*************@TK2MSFTNGP11.phx.gbl...
> > > I can't seem to get the session_end event to work?
> > > I've tried to update databases in it and response.redirect to
someplace
> > > else.
> > > Nothing works.
> > > I load page and leave it for 60 minutes and I know that the

session
id
> > > expired.
> > > I used session.abandon and it didn't fire the session_end.
> > >
> > > How can I test this? What is a good way to test if it's working? > > >
> > > Thanks
> > >
> > >
> >
> >
>
>



Nov 20 '05 #7

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

Similar topics

7
by: Stephanie Stowe | last post by:
http://www.aspfaq.com/show.asp?id=2078 I got my butt whooped over at asp.net group the other day with an offhanded reference to the unreliability of session on end. I have been told that in ASP...
3
by: Jeff Smythe | last post by:
I simply want to execute some code once when a new session of my ASP.NET application is started (I'm not using session state for anything else - just writing some data to a database). I thought...
6
by: Armen Kirakosyan | last post by:
Hi I have web site developed and now wanna to check how many people is connected In all MS articles written to use Application_start Session_start Session_end functions in Global.asa...
0
by: SeanGallavan | last post by:
Our Environment: Two network load balanced (using Microsoft NLB software) webservers with session maintained in a SQL Server database. NLB is configured with no affinity settings and two...
3
by: N. Shehzad | last post by:
This button click is fired for first time, but does not get fired for second time if I click. It again fires 3rd time, but not 4th time and so on.. I want to button to be fired everytime. I want...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
5
by: David Lozzi | last post by:
Howdy, is the Session_End event a guarantee event to be fired? I have this memory of back in ASP and IIS 4 that the event was guaranteed, like a 50/50 chance. If I have some shopping cart clean...
2
by: Dan Colgan | last post by:
Hi, I am thoroughly fed up. I have been trying for a few weeks to get an understanding of when events for session and application fire and why they don't for me. I am understanding the...
2
by: HammRadio | last post by:
I am exploring converting my web app (current Framework 1.1) to Framework 2.0. Everything went smoothly save for one item. To reduce the trips to the database, when loading user controls (like a...
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:
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
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...
0
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
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,...
0
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,...

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.