About session variables
Session variables let you store and display information maintained for the duration of a users visit (or session). The server creates a different session object for each user and maintains it for a set period of time or until the object is explicitly terminated. For more information, see Accessing data stored in session variables.
Because session variables last throughout the users session and persist when the user moves from page to page within the website, theyre ideal for storing user preferences. Session variables can also be used for inserting a value in the pages HTML code, assigning a value to a local variable, or providing a value to evaluate a conditional expression.
Before defining session variables for a page, you must create them in the source code. For instructions, see Collecting data submitted by users and Accessing data stored in session variables.
After you create a session variable in the web applications source code, you can use Dreamweaver to retrieve its value and use it in a web page.
- ASP and ColdFusion application variables
- Defining session variables