473,325 Members | 2,774 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.

When to unload Session obejects

Hi all,

When should I remove objects that I have put in my session. The consumer of
the control does not know anything about the control. I HAVE to put this
guys in the session.

Also,
I need to know if a Button.Click event has been fired BEFORE a
TextBox.TextChanged event gets fired. Which is not the way it works right
now. (The control is a Composite control)

/ jorge
Nov 18 '05 #1
4 1268
Ideally, the runtime will remove objects from the session after the
session times out (if it times out), and the objects are garbage
collected. You really can't be proactive about it, particularly from
the persepctive of a control author.

--
Scott
http://www.OdeToCode.com

On Tue, 25 May 2004 17:14:00 +0100, "jorge"
<an*******@discussions.microsoft.com> wrote:
Hi all,

When should I remove objects that I have put in my session. The consumer of
the control does not know anything about the control. I HAVE to put this
guys in the session.

Also,
I need to know if a Button.Click event has been fired BEFORE a
TextBox.TextChanged event gets fired. Which is not the way it works right
now. (The control is a Composite control)

/ jorge


Nov 18 '05 #2
Ack! The event mechanism of ASP.NET should change. Any extensions to the
framework that are worth looking at?

/ jorge

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:ur********************************@4ax.com...
Ideally, the runtime will remove objects from the session after the
session times out (if it times out), and the objects are garbage
collected. You really can't be proactive about it, particularly from
the persepctive of a control author.

--
Scott
http://www.OdeToCode.com

On Tue, 25 May 2004 17:14:00 +0100, "jorge"
<an*******@discussions.microsoft.com> wrote:
Hi all,

When should I remove objects that I have put in my session. The consumer ofthe control does not know anything about the control. I HAVE to put this
guys in the session.

Also,
I need to know if a Button.Click event has been fired BEFORE a
TextBox.TextChanged event gets fired. Which is not the way it works right
now. (The control is a Composite control)

/ jorge

Nov 18 '05 #3
"jorge" <an*******@discussions.microsoft.com> wrote in message
news:uQ**************@TK2MSFTNGP10.phx.gbl...
Ack! The event mechanism of ASP.NET should change. Any extensions to the
framework that are worth looking at?
Why do you need your Session objects removed sooner?

You could handle the Session_End event in global.asax and remove things at
that time. I suggested to another poster that he try iterating through
Session, checking each object to see if it implements IDisposable, and
calling IDisposable.Dispose() on it if it does. Maybe that will help you.
--
John Saunders
johnwsaundersiii at hotmail

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:ur********************************@4ax.com...
Ideally, the runtime will remove objects from the session after the
session times out (if it times out), and the objects are garbage
collected. You really can't be proactive about it, particularly from
the persepctive of a control author.

--
Scott
http://www.OdeToCode.com

On Tue, 25 May 2004 17:14:00 +0100, "jorge"
<an*******@discussions.microsoft.com> wrote:
Hi all,

When should I remove objects that I have put in my session. The consumer
of
the control does not know anything about the control. I HAVE to put

thisguys in the session.

Also,
I need to know if a Button.Click event has been fired BEFORE a
TextBox.TextChanged event gets fired. Which is not the way it works rightnow. (The control is a Composite control)

/ jorge


Nov 18 '05 #4
First, stop posting this to so many groups.

Session times out automatically, you do not need to explicitly remove them.
If you are trying to be efficient with memory, set the session expiration
lean. The default is 20 minutes.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"jorge" <an*******@discussions.microsoft.com> wrote in message
news:O$****************@TK2MSFTNGP09.phx.gbl...
Hi all,

When should I remove objects that I have put in my session. The consumer
of
the control does not know anything about the control. I HAVE to put this
guys in the session.

Also,
I need to know if a Button.Click event has been fired BEFORE a
TextBox.TextChanged event gets fired. Which is not the way it works right
now. (The control is a Composite control)

/ jorge

Nov 18 '05 #5

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

Similar topics

2
by: baylor | last post by:
We have numerous pages that store datasets in Session. Sometimes these are used for one page, sometimes for a few (ex. - search page looks up your info, edit person page edits that info) What...
4
by: AW | last post by:
Hello, I have a method to initialize my application, which reads configuration settings, establishes connections, and loads a bunch of data. It lasts for several seconds. This method is...
2
by: baylor | last post by:
We have numerous pages that store datasets in Session. Sometimes these are used for one page, sometimes for a few (ex. - search page looks up your info, edit person page edits that info) What...
1
by: ABC | last post by:
Will Session automatic clear memory when I unload web page?
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
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...
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...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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
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

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.