Set Cookie via Actionscript

Posted on 2009-02-09
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:fantasycommish
    1 Comment
    LVL 37

    Accepted Solution

    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"JSFunction"); type of command...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    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.
    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.
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now