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

Session End doesn't get called

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 state I changed the timeout
to "2" and made sure the mode was "InProc". Then I opened my app, did some
stuff, and closed it, expecting in two minutes' time the Session_End event
would fire (It updates the database from the Cache). But it doesn't. I've
tried running by hitting F5 in VS.Net, and have also tried by opening a
browser outside of VS. What am I missing here?

--
- Jim Owen
206-501-6936
Nov 17 '05 #1
2 3361
Hi Jim:

Check out the following URL:

http://www.eggheadcafe.com/articles/20030416.asp

In fact I had a very similar problem and heavily depending on Session_OnEnd and the above trick really works.
================================
Deepak Kumar Vasudevan (MVP)
CS Software Solutions

Phones: +91-44-2819-1336 thru 38
91-98400-26014
www.cssolutionsinc.com

Mailbox Protected by SpamPal (http://www.spampal.org.uk/)
================================
"Jim Owen" <jk********@comcast.net> wrote in message news:OA**************@TK2MSFTNGP12.phx.gbl...
I'm not sure I understand. I'm using Session the way I use Cache, putting
Session-specific data in there, such as what record I'm currently editing,
etc. So how does that differ from what you're talking about?

--
- Jim Owen
206-501-6936
"Ram" <ra**********@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
You have to store something in the Session for Session_End to work.

In the Session on start event add this
Session("Started")="True"

Now your session_end should work.

Thanks
Ram

"Jim Owen" <jk********@comcast.net> wrote in message

news:<u#**************@tk2msftngp13.phx.gbl>...
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 state I changed the timeout to "2" and made sure the mode was "InProc". Then I opened my app, did some stuff, and closed it, expecting in two minutes' time the Session_End event would fire (It updates the database from the Cache). But it doesn't. I've tried running by hitting F5 in VS.Net, and have also tried by opening a
browser outside of VS. What am I missing here?

Nov 17 '05 #2
Ram
I thought you are not storing anything in the Session. If you are not
storing any thing in the session variables, Session_end will not fire.

Why don't you try this. Crate one page in that create a session
variable and assign some value to it. Make it as start page and run it
by pressing F5. don't do any thing else. Check whether Session_End is
firing or not.

If it is firing at that time, there may be something wrong going in
the pages where you are storing values in session variables.

"Jim Owen" <jk********@comcast.net> wrote in message news:<OA**************@TK2MSFTNGP12.phx.gbl>...
I'm not sure I understand. I'm using Session the way I use Cache, putting
Session-specific data in there, such as what record I'm currently editing,
etc. So how does that differ from what you're talking about?

--
- Jim Owen
206-501-6936
"Ram" <ra**********@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
You have to store something in the Session for Session_End to work.

In the Session on start event add this
Session("Started")="True"

Now your session_end should work.

Thanks
Ram

"Jim Owen" <jk********@comcast.net> wrote in message

news:<u#**************@tk2msftngp13.phx.gbl>...
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 state I changed the timeout to "2" and made sure the mode was "InProc". Then I opened my app, did some stuff, and closed it, expecting in two minutes' time the Session_End event would fire (It updates the database from the Cache). But it doesn't. I've tried running by hitting F5 in VS.Net, and have also tried by opening a
browser outside of VS. What am I missing here?

Nov 17 '05 #3

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

Similar topics

1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
2
by: oliver.wulff | last post by:
Hi I wrote a IHttpModule which should store an object in the session. Unfortunately, the session is empty: public void OnAuthenticateRequest(object o, EventArgs ea) { HttpApplication httpApp =...
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
13
by: Alexander Widera | last post by:
hi, who has seen the follow problem or could help please? i visit a page .... i read a sesssion-var . ... everythink works...... i visit the page again..... error ... the sessionvar is null .... i...
1
by: zzzbla | last post by:
Hello, I have a project in which I'm trying to embed one site, that uses session stored variables, inside an IFRAME in another site (which for that matter doesn't even use sessions). Problem...
2
by: Gordon Burditt | last post by:
I had this idea about preventing session fixation, and I'm wondering what anyone else thinks about it. The idea is, essentially, don't allow session ids that YOUR PHP didn't generate (and aren't...
2
by: RSH | last post by:
I have a situation where I have a page called "HiddenFrame.aspx" that contains a public property exposing the value of a textbox called "TextBox1" that is in a hiddenframe. Loaded in the main...
1
by: leo | last post by:
Hi , i have a problem with session variables. The web site was already working correctly using sessions, i've had to add a page which use a new variable session but this new one doesn't get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
1
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...
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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...

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.