Hello all,
In my AEM application, in the page properties, I have added Adobe Launch script. Called this script in the page template level(in head.html section). So, during page load time, Adobe Launch script will execute and does many things. One part is it adds some details to cookies, say "launch_cookie".
My Java logic(which I am calling from few components.) will read the launch_cookie value from cookie and uses the values. Now, during page load time Java logic executes first. Then Adobe launch script is adding the value to cookies. So, during the first page load, my java logic is not getting the proper values from cookie. How can i resolve this issue?
Adobe Launch script should execute first. Then, java logic should execute.