uRLSessionFormat

Description

Depending on whether a client computer accepts cookies, this function does the following:

Categories

Syntax

URLSessionFormat(request_URL)

Attributes

AttributeDescriptionRequiredDefault
request_URLURL of a ColdFusion page

Returns

A URL; if cookies are disabled for the browser, client and session data are appended.

Usage

In the following example, the cfform tag posts a request to another page and sends the client identification, if necessary. 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")#"> 
</cfform>