Accessibility
 
Home / Products / UltraDev / Support / Adding Dynamic Content
Dreamweaver UltraDev Icon Macromedia Dreamweaver UltraDev Support Center - Customizing Dreamweaver UltraDev
Storing the information in a session variable

After gathering the information you want for the session variable, you must store it in the variable in your source code. The code that does this varies depending on your server technology and the method you use to gather the information.

If you use a URL parameter called currency (or an HTML form with the GET method and a text field called currency) to gather the information, then the following statements store the information in a session variable called exchange.

ASP:

<% Session("exchange") = Request.QueryString("currency") %>

ColdFusion:

<CFSET session.exchange = url.currency>

JSP:

<% session.setAttribute("exchange", request.getParameter("currency")); %>

If you use an HTML form with the POST method and a text field called currency to gather the information, then the following statements store the information in the session variable.

ASP:

<% Session("exchange") = Request.Form("currency") %>

ColdFusion:

<CFSET session.exchange = form.currency>

JSP:

<% session.setAttribute("exchange", request.getParameter("currency")); %>

To Table of Contents Back to Previous document Forward to next document