Adobe Dreamweaver CS3 Bedienungsanleitung Seite 565

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 738
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 564
DREAMWEAVER CS3
User Guide
558
Define session variables
You can use session variables to store and display information maintained for the duration of a user’s 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.
Before defining session variables for a page, you must create them in the source code. 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.
1 Create a session variable in the source code, and assign a value to it.
For example, this ColdFusion example instantiates a session called
username, and assigns it the value Cornelius:
<CFSET session.username = Cornelius>
2 Select Window > Bindings to display the Bindings panel.
3 Click the Plus (+) button, and select Session Variable from the pop-up menu.
4 Enter the name of the variable you defined in the applications source code, and click OK.
See also
Collecting data submitted by users” on page 532
Accessing data stored in session variables” on page 535
“How session variables work” on page 535
Collecting, storing, and retrieving information in session variables” on page 535
Define application variables for ASP and ColdFusion
In ASP and ColdFusion, you can use application variables to store and display information that is maintained for the
lifetime of the application and persists from user to user. After you define the application variable, you can use its
value in a page.
Note: There are no application variable objects in JSP or PHP.
1 Open a dynamic document type in the Document window.
2 Select Window > Bindings to display the Bindings panel.
3 Click the Plus (+) button, and select Application Variable from the pop-up menu.
4 Enter the name of the variable as defined in the applications source code, and click OK.
The application variable appears in the Bindings panel under the Application icon.
September 4, 2007
Seitenansicht 564
1 2 ... 560 561 562 563 564 565 566 567 568 569 570 ... 737 738

Kommentare zu diesen Handbüchern

Keine Kommentare