|
-
Feb 7th, 2004, 05:50 PM
#1
Thread Starter
Fanatic Member
global variables (in a module)
Hiya,
are global variables in a module unique to each session?
Cheers
Nick
-
Feb 7th, 2004, 07:50 PM
#2
PowerPoster
No, but they only exist as long as the application is running. If a user doesn't visit your site for a while, the application is terminated on the server. Then, when someone comes along to your site, the application is started back up again, and you can't count on those variables to be the same.
If you need the variables to be unique to the session, use the session object to store your variables. Otherwise, the Application, or better yet, the Cache object is where you should store global stuff.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|