Re: Shared (Static) Function and Subs
From: Carlos Campos (carlos_at_(NoSpam)costarricense.cr)
Date: 03/03/04
- Next message: Monika Mesik: "Grid Alternative - Issues"
- Previous message: Steven K: "Where to add the Include File"
- In reply to: Kevin Spencer: "Re: Shared (Static) Function and Subs"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Mar 2004 14:27:36 -0600
What??? I think that the public thing will not help.
When you have a shared property, this is a kind of global variable of all
instances of your object.
The "problem" you are having is the current behavior, if you connect from
different browser or different machines to your site, you are accesing your
only variable _i.... the variable is in the server, not in the browser...
and there is not a copy of your code for every person connected to your
server.
I think that you want to have a count of how many times a user request your
site....use the session variable to insert there your _i variable... and in
Global_Asax Session_Start set _i to 0 and in Session_End do what you want
with the final count....
Do not increment in the Begin_Request event, because there you dont have
access to the session object... you must increment it in the page....
- Next message: Monika Mesik: "Grid Alternative - Issues"
- Previous message: Steven K: "Where to add the Include File"
- In reply to: Kevin Spencer: "Re: Shared (Static) Function and Subs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|