Accessibility
 
Home > Products > UltraDev > Support > Building Common Applications
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Building Common Applications
Using session variables in your Web applications

This article describes how to create and use session variables in your Web applications. Session variables store information and make it available to all pages in the application for the duration of the user's visit. You can use session variables to store the user's display preferences, the running score of a multi-page quiz or a game, or items chosen so far in an online catalog.

The following topics are covered in this article:

What session variables can do for you
Gathering the information to store in session variables
Storing information in session variables
Example of information stored in session variables
Retrieving values from session variables
Example of values retrieved from session variables

Note: In ColdFusion, you must first enable session variables by setting SESSIONMANAGEMENT="Yes" in the CFAPPLICATION tag in your Application.cfm file, as follows: <CFAPPLICATION NAME="MyApp" SESSIONMANAGEMENT="Yes">



June 11, 2001

session, maintaining state, cookie, URL parameter, form parameter, coding, scripting, server-side script

9810