| Contents > CFML Reference > ColdFusion Functions > URLSessionFormat |
|
|
|
|
||
Depending on whether a client computer accepts cookies, this function does the following:
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.
A URL; if cookies are disabled for the browser, client and session data are appended.
URLSessionFormat(request_URL)
Parameter |
Description |
|---|---|
request_URL |
URL of a ColdFusion page |
In the following example, the cfform tag posts a request to another page and sends the client 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
<cfform
method="Post"
action="#URLSessionFormat("MyActionPage.cfm")#>
|
|
||
| Contents > CFML Reference > ColdFusion Functions > URLSessionFormat |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/funca115.htm
Comments
Matthew S. said on Aug 29, 2003 at 7:38 AM :