Forum Discussion

kavithams's avatar
7 years ago

What is "data-lia-action-token" and how to get one ?

Are  "data-lia-action-token"s a user's session key ? Given a particular page, there seems to be many places where "data-lia-action-token"s are being used but they mostly all have different values in the session key format.

Please clarify the same and explain how can one get a "data-lia-action-token" value for a given user?

5 Replies

  • Parshant's avatar
    Parshant
    Boss
    7 years ago

    kavithams

    You can use javascript or jquery to get the value of "data-lia-action-token".

    Some thing like this to get attribute value.

     

    var token = $('.lia-link-navigation.addBoardUserEmailSubscription.lia-component-subscriptions-action-add-board-user-email#addBoardUserEmailSubscription').attr('data-lia-action-token');

    and add this variable value to your html.

     

     

     

  • kavithams's avatar
    kavithams
    Guide
    7 years ago

    Parshant Okay thanks, this is for accessing this attribute. But what exactly is this token and how can I generate one myself ?

    Also by accessing this attribute using jquery, I'm unable to assign it or use it in freemarker yet.

    Please let me know the same.

  • luk's avatar
    luk
    Boss
    7 years ago

    kavithams as far as I know you can't get them on FreeMarker level, had this problem a few times already. Maybe DougS knows some magic here?