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 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 are also available to all pages in one application. Application variables are used to store information about ALL users in a specific application.
The ASP source code can contain procedures and functions:
Insert the <%@ language=”language” %> line above the tag to write procedures or functions in another scripting language than default:
Reference : Dilip Kumar Jena ( https://mstechexplore.wordpress.com )