ASP Variables


A variable is employed to store information.

If the variable is stated outside a procedure it can be changed by any script in the ASP file. If the variable is declared within a procedure, it is shaped and destroyed every time the procedure is carried out.

Lifetime of Variables

A variable declared outside a procedure can be accessed and changed by any script in the ASP file.
A variable declared inside a procedure is created and destroyed every time the procedure is executed. No scripts outside the procedure can access or change the variable.
To declare variables accessible to more than one ASP file, declare them as session variables or application variables.

Session Variables

Session variables are used to store information about ONE single user, and are available to all pages in one application. Typically information stored in session variables are name, id, and preferences.
Application Variables
Application variables are also accessible to all pages in one application. Application variables are used to store information about ALL users in a precise application.





Copyright © 1999-2003. Maxis Media Studios, LLC All Rights Reserved.
Montreal Web Design - Maxis Media