Urlsessionformat - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

URLSessionFormat

Description
Depending on whether a client computer accepts cookies, this function does the following:
If the client does not accept cookies: automatically appends all required client identification
information to a URL
If the client accepts cookies: does not append information
This function automatically determines which identifiers are required, and sends only the
required information. It provides a more secure and robust method for supporting client
identification than manually encoding the information in each URL, because it sends only
required information, when it is required, and it is easier to code.
Returns
A URL; if cookies are disabled for the browser, client and session data are appended.
Category
Other functions
Function syntax
URLSessionFormat(request_URL)
Parameters
Parameter
request_URL
Usage
In the following example, the
identification, if required. If cookie support is detected, the function returns the following:
myactionpage.cfm
If the detected cookie is not turned on, or cookie support cannot be reliably detected, the
function return value is as follows:
myactionpage.cfm?jsessionid=xxxx;cfid=xxxx&cftoken=xxxxxxxx
Example
<cfform
method="Post"
action="#URLSessionFormat("MyActionPage.cfm")#>
Description
URL of a ColdFusion page
tag posts a request to another page and sends the client
cfform
URLSessionFormat
733

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents