No. Remember the application doesn't know when the browser was closed,
it just knows the last time the browser made a request.  Sometime
after the timeout period since the last request the ASP.NET process
will kill the session, releasing the session objects and making them
available for garbage collection. The garbage collection happens
whenever the CRL decides it needs to collect garbage.


On Sat, 26 Feb 2005 15:33:21 -0000, scaevola637 <[EMAIL PROTECTED]> wrote:
> 
> 
> Dean,
>    When are the session variables garbage collected? user x closes
> browswer at 10:30.  Do the session variables, ie Session["mydataset"]
> stay around till 10:50:01  ?
> 
> --- In [email protected], Dean Fiala <[EMAIL PROTECTED]>
> wrote:
> > It is a question of cookies.
> >
> > When a user first visits your site, the web application returns a
> > cookie with the session ID to the browser.  The browser sends back the
> > cookie with every subsequent request to the application. The
> > application uses this ID to associate the request with a session.  If
> > the user closes the browser, the browser loses the session cookie.
> > The next time the user visits the site, the application generates a
> > new session and new session  ID and sends it back in the cookie,
> > starting the process over again.
> >
> > The web application doesn't really know the user closed the browser,
> > the browser has just lost the information needed to access the
> > session.
> >
> > HTH
> >
> >
> > --
> > Dean Fiala
> > Very Practical Software, Inc
> > http://www.vpsw.com
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to