On Aug 28, 10:19 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
> Check your view of the order of the events with this one :
>
[quoted text clipped - 4 lines]
> foros de asp.net, en espa?ol :http://asp.net.do/foros/
> ======================================
Juan,
Thanks for the follow up. This is where I derived most of what I have
presented, and based some of my code off of. I remember some years
ago, during the .Net 1.1 days, they had some wonderful diagrams
presenting the flow, but I have been unable to find them. They
presented a good visual flow of the pages, base pages and controls.
I'm still looking to find out where Session comes into scope though.
It seems that it's after I call base.OnInit in my own base page. I'm
just looking to confirm that.
Gary
Juan T. Llibre - 28 Aug 2007 19:38 GMT
Hi, Gary.
re:
!>I'm still looking to find out where Session comes into scope
For that, you need to look at the ASP.NET Application Life Cycle, not at the Page Life Cycle.
http://msdn2.microsoft.com/en-us/library/ms178473(VS.80).aspx
"When an instance of HttpApplication is created, any configured modules are also created.
For instance, if the application is configured to do so, ASP.NET creates a SessionStateModule module.
After all configured modules are created, the HttpApplication class's Init method is called.
Session comes into scope when the Session_OnStart event occurs.
See : http://msdn2.microsoft.com/en-us/library/ms178581(VS.80).aspx
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
On Aug 28, 10:19 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
> Check your view of the order of the events with this one :
>
[quoted text clipped - 4 lines]
> foros de asp.net, en español :http://asp.net.do/foros/
> ======================================
Juan,
Thanks for the follow up. This is where I derived most of what I have
presented, and based some of my code off of. I remember some years
ago, during the .Net 1.1 days, they had some wonderful diagrams
presenting the flow, but I have been unable to find them. They
presented a good visual flow of the pages, base pages and controls.
I'm still looking to find out where Session comes into scope though.
It seems that it's after I call base.OnInit in my own base page. I'm
just looking to confirm that.
Gary
Gary W. Smith - 28 Aug 2007 20:50 GMT
On Aug 28, 11:38 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
wrote:
> Hi, Gary.
>
[quoted text clipped - 17 lines]
> foros de asp.net, en espa?ol :http://asp.net.do/foros/
> ======================================
Juan,
Thanks for the information. From my reading, the Session scope is
available during the entire page lifetime, which is what I was looking
for. I just didn't know if the Session was avaiable prior to the
cookie collection being available, but it seems that it is.
Thanks,
Gary
bruce barker - 28 Aug 2007 23:50 GMT
there are two cycles. the application request cycle (see httpapplication
class) and the page cycle. the session handler is loaded before the page
cycle is started by page.
application life cycle:
http://msdn2.microsoft.com/en-us/library/ms178473.aspx
page life cycle:
http://msdn2.microsoft.com/en-us/library/ms178472.aspx
if you session is missing at oninit, then you have a coding error, or
are recycling sessions.
-- bruce (sqlwork.com)
> On Aug 28, 10:19 am, "Juan T. Llibre" <nomailrepl...@nowhere.com>
> wrote:
[quoted text clipped - 20 lines]
>
> Gary