Learn how to a build a cloud-first strategyRegister Now


Set Cookie via Actionscript

Posted on 2009-02-09
Medium Priority
Last Modified: 2013-12-24
I would like to set a cookie via actionscript. I would also like to access it via cf tags.

I would like to be able to set the "admin.client.unid" cookie via actionscript.. Then access that cookie's value via cftags, an example of accessing the cookie is the cfif below.
<cfcookie name="admin.client.unid" value="#form.fldUNID#">
<cfif IsDefined("Cookie.admin.client.unid") IS "True">

Open in new window

Question by:Michael Williams
1 Comment
LVL 37

Accepted Solution

CyanBlue earned 2000 total points
ID: 23591911
ActionScript has no such capability to set a cookie...  What you can do is to use something like JavaScript to set the value...  So, create a JavaScript function that sets a cookie value, and execute that JavaScript function from ActionScript by using ExternalInterface.call("JSFunction"); type of command...


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question