Re: Properties instead of Session Variables
- From: Stan <google@xxxxxxxxxxxxxxx>
- Date: Sun, 6 Apr 2008 09:12:34 -0700 (PDT)
On 6 Apr, 15:07, Patrice <patrice_scr...@xxxxxxxxxxx> wrote:
Globally that is ? For a particular user (in which case i don't see
why you couldn't use session variables) or for all users (in which
case you could use application variables) ?
Keep in mind that http is stateless that is server side stuff is
created from zero with each new request. So you can't create something
server side and expect it to be available in the during the next round
trip without having this stored in a preserved location (pages are
usually using the viewstate that is an hidden field that is posted
with each new request to recreate the page in its previous state).
I'd forgotten about the Application state, thanks Patrice for the
reminder (I've never used it).
To share the myfile object globally, assign it as:
Application("myfile") = myfile.
However there remains the problem of who owns it and is allowed to
overwrite it etc.
.
- Follow-Ups:
- Re: Properties instead of Session Variables
- From: Patrice
- Re: Properties instead of Session Variables
- From: Lucy
- Re: Properties instead of Session Variables
- References:
- Re: Properties instead of Session Variables
- From: Patrice
- Re: Properties instead of Session Variables
- Prev by Date: Re: Open Office document inside of IE - ASP.NET
- Next by Date: RE: Web Service Documentation Tool?
- Previous by thread: Re: Properties instead of Session Variables
- Next by thread: Re: Properties instead of Session Variables
- Index(es):
Relevant Pages
|