Re: Properties instead of Session Variables

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.
.



Relevant Pages

  • Re: Properties instead of Session Variables
    ... Use cookies, viewstate, file, or DB ... Keep in mind that http is stateless that is server side stuff is ... with each new request to recreate the page in its previous state). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: MSAccess to Web App
    ... I don't think you understand the meaning of "stateless" in this ... continuous awareness on the server of what the client is doing. ... again that is needed to establish the context of its next request. ...
    (comp.databases.ms-access)
  • Re: MSAccess to Web App
    ... I don't think you understand the meaning of "stateless" in this ... continuous awareness on the server of what the client is doing. ... again that is needed to establish the context of its next request. ...
    (comp.databases.ms-access)
  • Re: Properties instead of Session Variables
    ... Keep in mind that http is stateless that is server side stuff is ... usually using the viewstate that is an hidden field that is posted ... with each new request to recreate the page in its previous state). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Properties instead of Session Variables
    ... Storing a file object in Application would a bit defeat the purpose plus I ... Keep in mind that http is stateless that is server side stuff is ... with each new request to recreate the page in its previous state). ...
    (microsoft.public.dotnet.framework.aspnet)