nswan
Feb 7th, 2004, 04:50 PM
Hiya,
are global variables in a module unique to each session?
Cheers
Nick
hellswraith
Feb 7th, 2004, 06:50 PM
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.