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 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
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
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
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
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 > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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;
...
|
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...
|
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...
|
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...
|
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,...
|
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....
|
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...
|
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....
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |