Re: Site Unload?
Laurent Bugnion wrote on 20 dec 2004 in comp.lang.javas cript:
[color=blue]
> OK, that's the case in ASP.NET too (each Page object is deleted at the
> end of every call, and of course its members too), but you also have
> Session objects, for example you will save there DB connections, file
> contents, "global" variables, etc... IIRC, ASP also have the Application
> and Session objects, doesn't it? So my question was, how do you know
> when to room the resources saved in the Session object if you don't know
> when the said session has timed out?[/color]
Simple, Laurent, you don't.
Data is needed outside the present session should not be kept in session
memory.
The concept of "having a connection" with the client is a flawed one, as
the connection is not ASP but HTML. [I think hiding this fact of live is my
main objection to asp.net, while sold by MS as a bonus. But let our focus
stay on classic ASP.]
All pertinent data that is not to be lost, should be saved during the asp
execution fase of a single page to a serverside database or other file.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Laurent Bugnion wrote on 20 dec 2004 in comp.lang.javas cript:
[color=blue]
> OK, that's the case in ASP.NET too (each Page object is deleted at the
> end of every call, and of course its members too), but you also have
> Session objects, for example you will save there DB connections, file
> contents, "global" variables, etc... IIRC, ASP also have the Application
> and Session objects, doesn't it? So my question was, how do you know
> when to room the resources saved in the Session object if you don't know
> when the said session has timed out?[/color]
Simple, Laurent, you don't.
Data is needed outside the present session should not be kept in session
memory.
The concept of "having a connection" with the client is a flawed one, as
the connection is not ASP but HTML. [I think hiding this fact of live is my
main objection to asp.net, while sold by MS as a bonus. But let our focus
stay on classic ASP.]
All pertinent data that is not to be lost, should be saved during the asp
execution fase of a single page to a serverside database or other file.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Comment