Re: Properties instead of Session Variables
- From: "George Ter-Saakov" <gt-nsp@xxxxxxxxxxx>
- Date: Tue, 8 Apr 2008 08:16:00 -0400
Everything is BAAAAD... Even life itself considered to be a lethal
disease.... :)
So unless you work on second google.com you can use Session...
And totally do not see what is wrong with Application... just make sure you
know what you doing and do not put open DB connection in there....
PS: File is bad... hard to make it work in multi-user environment
George.
"Lucy" <Lucy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D7DA9F18-3742-4078-A5A5-2BA62AAE3935@xxxxxxxxxxxxxxxx
Application and Session vars. are BAAAAAD practice.
Use cookies, viewstate (for user), file, or DB (Globally )
-L
"Stan" wrote:
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.
.
- References:
- Re: Properties instead of Session Variables
- From: Patrice
- Re: Properties instead of Session Variables
- From: Stan
- Re: Properties instead of Session Variables
- From: Lucy
- Re: Properties instead of Session Variables
- Prev by Date: Re: Posted Form Items not in Request
- Next by Date: Re: upstream compression ?
- Previous by thread: Re: Properties instead of Session Variables
- Next by thread: Re: Properties instead of Session Variables
- Index(es):
Relevant Pages
|