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

SESSION_END Questions

1.) If I want to use an object that was stored in the Application state will
it be avilable in the Session_End event. (even on the last session to end)??
2.) Can I use the current sessions state in its own session_end event??

I asked because I am trying to log some data in this event and use both
scenarios above but nothing is happening.
Thanks!
Ron
Nov 19 '05 #1
5 1128
What happens if you set your session expration to say 1 minute, put a
breakpoint in those events you are interested in, and check the app and
session state yourself?
"Ron Vecchi" wrote:
1.) If I want to use an object that was stored in the Application state will
it be avilable in the Session_End event. (even on the last session to end)??
2.) Can I use the current sessions state in its own session_end event??

I asked because I am trying to log some data in this event and use both
scenarios above but nothing is happening.
Thanks!
Ron

Nov 19 '05 #2
From what I have seen, you can set the exp at 1 min and put a break point in
the code and have the break point work in debug mode. However, that does
not necessarily mean that it will work during normal running.

I have worked with this very scenario. What I found was that if you made
external calls to any data classes you built in the Session_End event, the
code does not seem to be executing. When I removed the external calls with
complete code in the End method, it works. It is a real pain in the
you-know-where, but it does work, at least for me. But, it is very flakey.

----Joel Zinn
"Serg" <Se**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
What happens if you set your session expration to say 1 minute, put a
breakpoint in those events you are interested in, and check the app and
session state yourself?
"Ron Vecchi" wrote:
1.) If I want to use an object that was stored in the Application state
will
it be avilable in the Session_End event. (even on the last session to
end)??
2.) Can I use the current sessions state in its own session_end event??

I asked because I am trying to log some data in this event and use both
scenarios above but nothing is happening.
Thanks!
Ron

Nov 19 '05 #3
Ron
What I was trying to do was log all web traffic made by the current session
and only store it in the database when the session ends. Seems like this
can't be done then...

Has anyone tried this? or no a way around it?
"Joel Zinn" <jw****@aep.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
From what I have seen, you can set the exp at 1 min and put a break point
in the code and have the break point work in debug mode. However, that
does not necessarily mean that it will work during normal running.

I have worked with this very scenario. What I found was that if you made
external calls to any data classes you built in the Session_End event, the
code does not seem to be executing. When I removed the external calls
with complete code in the End method, it works. It is a real pain in the
you-know-where, but it does work, at least for me. But, it is very flakey.

----Joel Zinn
"Serg" <Se**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
What happens if you set your session expration to say 1 minute, put a
breakpoint in those events you are interested in, and check the app and
session state yourself?
"Ron Vecchi" wrote:
1.) If I want to use an object that was stored in the Application state
will
it be avilable in the Session_End event. (even on the last session to
end)??
2.) Can I use the current sessions state in its own session_end event??

I asked because I am trying to log some data in this event and use both
scenarios above but nothing is happening.
Thanks!
Ron


Nov 19 '05 #4
Yes, that is what I am doing. I guess I wasn't clear with what we have
done. The only way we could consistently get our db log entries created was
to code the entire database Insert code in the Session_End. That way we did
not have to call out to one of our dataclasses, which is apparently where
the problem with Global.Session_End lie. If you call an outside object, it
it very internmittent.

--
-----
Joel Zinn
"Ron" <ve*******@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
What I was trying to do was log all web traffic made by the current
session and only store it in the database when the session ends. Seems
like this can't be done then...

Has anyone tried this? or no a way around it?
"Joel Zinn" <jw****@aep.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
From what I have seen, you can set the exp at 1 min and put a break point
in the code and have the break point work in debug mode. However, that
does not necessarily mean that it will work during normal running.

I have worked with this very scenario. What I found was that if you made
external calls to any data classes you built in the Session_End event,
the code does not seem to be executing. When I removed the external
calls with complete code in the End method, it works. It is a real pain
in the you-know-where, but it does work, at least for me. But, it is very
flakey.

----Joel Zinn
"Serg" <Se**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
What happens if you set your session expration to say 1 minute, put a
breakpoint in those events you are interested in, and check the app and
session state yourself?
"Ron Vecchi" wrote:

1.) If I want to use an object that was stored in the Application state
will
it be avilable in the Session_End event. (even on the last session to
end)??
2.) Can I use the current sessions state in its own session_end event??

I asked because I am trying to log some data in this event and use both
scenarios above but nothing is happening.
Thanks!
Ron



Nov 19 '05 #5
Ron
well thats unfortunate,

Thanks!

"Joel Zinn" <jw****@aep.com> wrote in message
news:eV****************@tk2msftngp13.phx.gbl...
Yes, that is what I am doing. I guess I wasn't clear with what we have
done. The only way we could consistently get our db log entries created
was to code the entire database Insert code in the Session_End. That way
we did not have to call out to one of our dataclasses, which is apparently
where the problem with Global.Session_End lie. If you call an outside
object, it it very internmittent.

--
-----
Joel Zinn
"Ron" <ve*******@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
What I was trying to do was log all web traffic made by the current
session and only store it in the database when the session ends. Seems
like this can't be done then...

Has anyone tried this? or no a way around it?
"Joel Zinn" <jw****@aep.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
From what I have seen, you can set the exp at 1 min and put a break
point in the code and have the break point work in debug mode. However,
that does not necessarily mean that it will work during normal running.

I have worked with this very scenario. What I found was that if you
made external calls to any data classes you built in the Session_End
event, the code does not seem to be executing. When I removed the
external calls with complete code in the End method, it works. It is a
real pain in the you-know-where, but it does work, at least for me. But,
it is very flakey.

----Joel Zinn
"Serg" <Se**@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
What happens if you set your session expration to say 1 minute, put a
breakpoint in those events you are interested in, and check the app and
session state yourself?
"Ron Vecchi" wrote:

> 1.) If I want to use an object that was stored in the Application
> state will
> it be avilable in the Session_End event. (even on the last session to
> end)??
> 2.) Can I use the current sessions state in its own session_end
> event??
>
> I asked because I am trying to log some data in this event and use
> both
> scenarios above but nothing is happening.
>
>
> Thanks!
> Ron
>
>
>



Nov 19 '05 #6

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

Similar topics

9
by: Kenn Ghannon | last post by:
I've got an ASP.NET page with a counter subtraction routine in the Session_End method in the Global.asax.cs: protected void Session_End(Object sender, EventArgs e) { ulong curUsers; ...
3
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...
7
by: Henry | last post by:
I have a question on session_end. I'm trying to log into my database when the session times out, it will store user info into a table. When I got step into a line where I was trying to open...
1
by: Timo | last post by:
A few questions relating to sessions ending. 1. What happens to the session when a user closes the browser? Does the session remain alive until it times out? 2. In the Session_End...
5
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,...
1
by: srivalli c via DotNetMonster.com | last post by:
Hi, When asp.net worker process or application pool recycles, is it guaranteed that the Session_End event fires for all active sessions? Any help is greatly appreciated. Thanks in advance....
4
by: news.microsoft.com | last post by:
I am reposting this because the person who replied to my original post did not understand me. Please dont post a reply unless you 'absolutley ' know what I am talking about and have a solution or...
8
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....
12
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...
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:
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
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
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
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.