Results 1 to 2 of 2

Thread: global variables (in a module)

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870

    global variables (in a module)

    Hiya,

    are global variables in a module unique to each session?

    Cheers
    Nick
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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
  •  



Click Here to Expand Forum to Full Width