Skip to main content
Inspiring
May 13, 2010
Question

Can you Set a Session variable through javascript?

  • May 13, 2010
  • 1 reply
  • 561 views

How possible is it to set a Session variable through Javascript? I have a bunch of radio buttons on the customer home page, and I need to set a session variable based on the clicked radio button. this session var needs to be set when the radio button is clicked and not when submitted.

Can this be accomplished Asynchronously?

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 13, 2010

    You could use AJAX to call a call a CFM or CFC URL to set

    the variable when radio button is clicked.  This doesn't ensure that the target CFM or CFC page is done executing before the form is submitted by the user, unless you add that functionality on the client.

    Inspiring
    May 13, 2010

    or you could use a little bitty iframe.