Application and session variables
Both application and session variables are used throughout Web applications. An application variable is one
that continues to exist as long as the application is active; in this situation, the application is the Web site
itself. Application variables are available to all users of a site. A hit counter often uses an application variable
to track the number of visitors to a site.
Although all users can see the results of a calculation involving application variables, session variables are
user-specific. A session starts when a user first visits a site and ends shortly after the user leaves. Session
variables are often used for user authentication and to maintain information about users as they travel
through the site; shopping carts often employ session variables. Both application and session variables are
available in ASP, PHP, and ColdFusion; in JSP only session variables can be inserted through the Bindings
panel; .NET doesn??™t allow any declared variables.
Request and other variables
Each of the server models, with the exception of .NET, has a range of variables available aside from application
and server variables. All are accessible through the Add (+) button of the Bindings panel and all, except
for ASP Request variables, use a one-field dialog box for the name of the variable.
Pages:
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311